@@ -7,20 +7,22 @@ This is a common benchmark which create, list, get, update, replace and delete e
7
7
| Name | Adapter | Options |
8
8
| ---- | ------- | ------- |
9
9
| NeDB (memory) | NeDB | - |
10
- | MongoDB | MongoDB | ` {"dbName":"bench-test ","collection":"users"} ` |
10
+ | MongoDB | MongoDB | ` {"dbName":"bench_test ","collection":"users"} ` |
11
11
| Knex SQLite (memory) | Knex | ` {"knex":{"client":"sqlite3","connection":{"filename":":memory:"},"useNullAsDefault":true,"log":{}}} ` |
12
+ | Knex-Postgresql | Knex | ` {"knex":{"client":"pg","connection":{"host":"127.0.0.1","port":5432,"user":"postgres","password":"moleculer","database":"bench_test"}}} ` |
12
13
## Entity creation
13
14
14
15
### Result
15
16
16
17
17
18
| Adapter config | Time | Diff | ops/sec |
18
19
| -------------- | ----:| ----:| -------:|
19
- | NeDB (memory) | 64μs | 425.91% | 15,520.55 |
20
- | MongoDB | 338μs | 0% | 2,951.17 |
21
- | Knex SQLite (memory) | 317μs | 6.7% | 3,148.86 |
20
+ | NeDB (memory) | 133μs | 616% | 7,509.97 |
21
+ | MongoDB | 953μs | 0% | 1,048.88 |
22
+ | Knex SQLite (memory) | 835μs | 14.04% | 1,196.19 |
23
+ | Knex-Postgresql | 2ms | -59.06% | 429.44 |
22
24
23
- ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20creation%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29&chd=a%3A15520.550306087249%2C2951.1729033377355%2C3148.8573298599076 )
25
+ ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20creation%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29%7CKnex-Postgresql &chd=a%3A7509.968502939131%2C1048.8813362999538%2C1196.193338627212%2C429.4365509567277 )
24
26
25
27
## Entity finding
26
28
@@ -29,11 +31,12 @@ This is a common benchmark which create, list, get, update, replace and delete e
29
31
30
32
| Adapter config | Time | Diff | ops/sec |
31
33
| -------------- | ----:| ----:| -------:|
32
- | NeDB (memory) | 230μs | 159.83% | 4,332.09 |
33
- | MongoDB | 599μs | 0% | 1,667.25 |
34
- | Knex SQLite (memory) | 172μs | 248.5% | 5,810.35 |
34
+ | NeDB (memory) | 550μs | 161.13% | 1,815.33 |
35
+ | MongoDB | 1ms | 0% | 695.18 |
36
+ | Knex SQLite (memory) | 761μs | 88.89% | 1,313.09 |
37
+ | Knex-Postgresql | 1ms | 42.45% | 990.25 |
35
38
36
- ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20finding%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29&chd=a%3A4332.086400483569%2C1667.251594409789%2C5810.354334194111 )
39
+ ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20finding%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29%7CKnex-Postgresql &chd=a%3A1815.3338412567227%2C695.176792798978%2C1313.0939965347168%2C990.2536308481683 )
37
40
38
41
## Entity listing
39
42
@@ -42,11 +45,12 @@ This is a common benchmark which create, list, get, update, replace and delete e
42
45
43
46
| Adapter config | Time | Diff | ops/sec |
44
47
| -------------- | ----:| ----:| -------:|
45
- | NeDB (memory) | 1ms | 11.69% | 882.11 |
46
- | MongoDB | 1ms | 0% | 789.75 |
47
- | Knex SQLite (memory) | 578μs | 118.75% | 1,727.55 |
48
+ | NeDB (memory) | 2ms | 27.39% | 440.88 |
49
+ | MongoDB | 2ms | 0% | 346.09 |
50
+ | Knex SQLite (memory) | 1ms | 172.68% | 943.73 |
51
+ | Knex-Postgresql | 1ms | 64.58% | 569.59 |
48
52
49
- ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20listing%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29&chd=a%3A882.1061121640429%2C789.7534231862128%2C1727.554981836679 )
53
+ ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20listing%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29%7CKnex-Postgresql &chd=a%3A440.8824042290265%2C346.0938734566868%2C943.7286496681418%2C569.5909821723836 )
50
54
51
55
## Entity counting
52
56
@@ -55,11 +59,12 @@ This is a common benchmark which create, list, get, update, replace and delete e
55
59
56
60
| Adapter config | Time | Diff | ops/sec |
57
61
| -------------- | ----:| ----:| -------:|
58
- | NeDB (memory) | 1ms | -35.65% | 744.91 |
59
- | MongoDB | 863μs | 0% | 1,157.55 |
60
- | Knex SQLite (memory) | 145μs | 493.39% | 6,868.76 |
62
+ | NeDB (memory) | 1ms | -19.12% | 568.27 |
63
+ | MongoDB | 1ms | 0% | 702.57 |
64
+ | Knex SQLite (memory) | 303μs | 368.37% | 3,290.68 |
65
+ | Knex-Postgresql | 759μs | 87.38% | 1,316.49 |
61
66
62
- ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20counting%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29&chd=a%3A744.9083928418921%2C1157.5458931255625%2C6868.75566194105 )
67
+ ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20counting%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29%7CKnex-Postgresql &chd=a%3A568.2729648602835%2C702.5746965267197%2C3290.6820611225803%2C1316.4920639696516 )
63
68
64
69
## Entity getting
65
70
@@ -68,11 +73,12 @@ This is a common benchmark which create, list, get, update, replace and delete e
68
73
69
74
| Adapter config | Time | Diff | ops/sec |
70
75
| -------------- | ----:| ----:| -------:|
71
- | NeDB (memory) | 42μs | 548.17% | 23,614.31 |
72
- | MongoDB | 274μs | 0% | 3,643.24 |
73
- | Knex SQLite (memory) | 147μs | 86.5% | 6,794.62 |
76
+ | NeDB (memory) | 68μs | 1,046.68% | 14,669.26 |
77
+ | MongoDB | 781μs | 0% | 1,279.29 |
78
+ | Knex SQLite (memory) | 409μs | 90.68% | 2,439.35 |
79
+ | Knex-Postgresql | 784μs | -0.36% | 1,274.72 |
74
80
75
- ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20getting%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29&chd=a%3A23614.314041407346%2C3643.2353709526915%2C6794.6160807510105 )
81
+ ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20getting%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29%7CKnex-Postgresql &chd=a%3A14669.259267409656%2C1279.286247049302%2C2439.3484180933215%2C1274.72016142048 )
76
82
77
83
## Entity resolving
78
84
@@ -81,11 +87,12 @@ This is a common benchmark which create, list, get, update, replace and delete e
81
87
82
88
| Adapter config | Time | Diff | ops/sec |
83
89
| -------------- | ----:| ----:| -------:|
84
- | NeDB (memory) | 29μs | 859.91% | 34,345.73 |
85
- | MongoDB | 279μs | 0% | 3,578.02 |
86
- | Knex SQLite (memory) | 147μs | 89.24% | 6,771 |
90
+ | NeDB (memory) | 67μs | 1,072.1% | 14,786.3 |
91
+ | MongoDB | 792μs | 0% | 1,261.52 |
92
+ | Knex SQLite (memory) | 349μs | 127.1% | 2,864.95 |
93
+ | Knex-Postgresql | 755μs | 4.86% | 1,322.79 |
87
94
88
- ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20resolving%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29&chd=a%3A34345.730311534746%2C3578.02093301269%2C6770.997110974851 )
95
+ ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20resolving%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29%7CKnex-Postgresql &chd=a%3A14786.301219406241%2C1261.5241435721416%2C2864.946312232579%2C1322.7911259662353 )
89
96
90
97
## Entity updating
91
98
@@ -94,11 +101,12 @@ This is a common benchmark which create, list, get, update, replace and delete e
94
101
95
102
| Adapter config | Time | Diff | ops/sec |
96
103
| -------------- | ----:| ----:| -------:|
97
- | NeDB (memory) | 109μs | 406.39% | 9,112.3 |
98
- | MongoDB | 555μs | 0% | 1,799.46 |
99
- | Knex SQLite (memory) | 442μs | 25.72% | 2,262.27 |
104
+ | NeDB (memory) | 218μs | 643% | 4,577.23 |
105
+ | MongoDB | 1ms | 0% | 616.05 |
106
+ | Knex SQLite (memory) | 1ms | 47.83% | 910.7 |
107
+ | Knex-Postgresql | 2ms | -43.92% | 345.47 |
100
108
101
- ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20updating%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29&chd=a%3A9112.300486428467%2C1799.461996852181%2C2262.2660920100316 )
109
+ ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20updating%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29%7CKnex-Postgresql &chd=a%3A4577.230110178461%2C616.0483041257492%2C910.7005648881625%2C345.4652494785996 )
102
110
103
111
## Entity replacing
104
112
@@ -107,24 +115,12 @@ This is a common benchmark which create, list, get, update, replace and delete e
107
115
108
116
| Adapter config | Time | Diff | ops/sec |
109
117
| -------------- | ----:| ----:| -------:|
110
- | NeDB (memory) | 105μs | 441.04% | 9,480.95 |
111
- | MongoDB | 570μs | 0% | 1,752.37 |
112
- | Knex SQLite (memory) | 461μs | 23.77% | 2,168.99 |
118
+ | NeDB (memory) | 211μs | 725.13% | 4,729.44 |
119
+ | MongoDB | 1ms | 0% | 573.18 |
120
+ | Knex SQLite (memory) | 1ms | 46.21% | 838.05 |
121
+ | Knex-Postgresql | 3ms | -45.76% | 310.87 |
113
122
114
- ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20replacing%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29&chd=a%3A9480.946242971793%2C1752.367667765109%2C2168.991276066865 )
115
-
116
- ## Entity deleting
117
-
118
- ### Result
119
-
120
-
121
- | Adapter config | Time | Diff | ops/sec |
122
- | -------------- | ----:| ----:| -------:|
123
- | NeDB (memory) | 171μs | -0.3% | 5,847.85 |
124
- | MongoDB | 170μs | 0% | 5,865.48 |
125
- | Knex SQLite (memory) | 1ms | -87.44% | 736.72 |
126
-
127
- ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20deleting%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29&chd=a%3A5847.848453652166%2C5865.476575255393%2C736.7163512064737 )
123
+ ![ chart] ( https://image-charts.com/chart?chs=800x450&chtt=Entity%20replacing%7C%28ops%2Fsec%29&chf=b0%2Clg%2C90%2C03a9f4%2C0%2C3f51b5%2C1&chg=0%2C50&chl=%7C%7C%7C%7C%2033%25%20%21%7Cx2%20&chma=0%2C0%2C10%2C10&cht=bvs&chxt=x%2Cy&chxl=0%3A%7CNeDB%20%28memory%29%7CMongoDB%7CKnex%20SQLite%20%28memory%29%7CKnex-Postgresql&chd=a%3A4729.43668174304%2C573.1761262639386%2C838.0454056487049%2C310.8743228991901 )
128
124
129
125
--------------------
130
- _ Generated at 2021-04-17T13:37:46.513Z _
126
+ _ Generated at 2021-04-17T17:14:37.684Z _
0 commit comments