-
-
Notifications
You must be signed in to change notification settings - Fork 124
/
perf.txt
347 lines (272 loc) · 5.34 KB
/
perf.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
BEFORE:
(clean application state), exmpty idb
- intervall-timeout set to zero
2220ms
2494ms
2235ms
// series run without cleaning the state
2385
4813
6079
7553
9573
AFTER:
(clear state)
1370
1281
1212
(non clear)
1312
1314
1362
1448
1450
1397
===================================
20.06.2018
===================================
IndexedDB
BEFORE:
3610
3380
3489
AFTER (with localstorage ping):
4183
3962
3821
=> sending localstorage-pings is slower
====== build-size
BEFORE: 37251
AFTER: 4077
====== build-size 2
BEFORE: 4077
AFTER: 3795
====== build-size 3
BEFORE: 3795
AFTER: 3110
-----------------------------------------
14.July.2018: test:performance
before: {
"openClose": 1589.1032320000231,
"sendRecieve": {
"parallel": 8576.14631400071,
"series": 8902.407701000571
}
}
after: {
"openClose": 1606.3578069992363,
"sendRecieve": {
"parallel": 6627.974293999374,
"series": 5202.203781999648
}
}
-----------------------------------------
-----------------------------------------
test:performance
BEFORE: {
"openClose": 1499.9152579996735,
"sendRecieve": {
"parallel": 6752.695256000385,
"series": 5142.3914529997855
}
}
AFTER: { // getPathsCache
"openClose": 1154.4196130000055,
"sendRecieve": {
"parallel": 6559.061360999942,
"series": 4965.728401999921
}
}
AFTER2: { // cleanup things
"openClose": 1086.149023000151,
"sendRecieve": {
"parallel": 6496.672225000337,
"series": 4932.777033999562
}
}
AFTER3: { // run things in parallel
"openClose": 737.8487470000982,
"sendRecieve": {
"parallel": 6637.516607999802,
"series": 4835.849313000217
}
}
AFTER4: { // read content in parallel
"openClose": 746.0398439988494,
"sendRecieve": {
"parallel": 6332.704676998779,
"series": 4761.053835000843
}
}
AFTER5: { // better postMessage
"openClose": 666.0222460012883,
"sendRecieve": {
"parallel": 5854.225347001106,
"series": 4425.243154998869
}
}
-----------------------------------------
test:performance
BEFORE: {
"openClose": 714.9132689982653,
"sendRecieve": {
"parallel": 6018.035248000175,
"series": 4019.5094799995422
}
}
AFTER: { // write message up front
"openClose": 703.9341719998047,
"sendRecieve": {
"parallel": 233.59367400035262,
"series": 4531.717969999649
}
}
-----------------------------------------
-----------------------------------------
test:performance - forgetting set
BEFORE: {
"openClose": 703.9341719998047,
"sendRecieve": {
"parallel": 233.59367400035262,
"series": 4531.717969999649
}
}
AFTER: { // add fast path
"openClose": 698.5278329998255,
"sendRecieve": {
"parallel": 254.588275000453,
"series": 3679.5491359978914
}
}
-----------------------------------------
no idle-queue
BEFORE: {
"openClose": 720.8237979999976,
"sendRecieve": {
"parallel": 250.95046299998648,
"series": 3671.9275919999927
}
}
AFTER: {
"openClose": 684.5638470000122,
"sendRecieve": {
"parallel": 246.08427699981257,
"series": 2251.4478739998303
}
}
-----------------------------------------
## no default import
npm run build:size
BEFORE: 112358
AFTER : 112401
## only use async/await when needed
BEFORE: 112401
AFTER : 111582
-----------------------------------------
new unload module
BEFORE: {
"openClose": 765.1154530011117,
"sendRecieve": {
"parallel": 259.89112799987197,
"series": 4052.1648419983685
}
}
AFTER: {
"openClose": 672.2327830009162,
"sendRecieve": {
"parallel": 250.701522000134,
"series": 4001.1675169989467
}
}
-----------------------------------------
use native node-code without transpilation
BEFORE: {
"openClose": 733.8300310000777,
"sendRecieve": {
"parallel": 245.27187200076878,
"series": 3865.821045000106
}
}
AFTER: {
"openClose": 577.4335329998285,
"sendRecieve": {
"parallel": 226.03592699952424,
"series": 4163.729206999764
}
}
-----------------------------------------
CACHE tmp-folder:
BEFORE: {
"openClose": 611.5843779994175,
"sendRecieve": {
"parallel": 229.9967109998688,
"series": 4040.1850410001352
}
}
{
"openClose": 586.3366490006447,
"sendRecieve": {
"parallel": 237.4793659998104,
"series": 3972.603798000142
}
}
AFTER: {
"openClose": 563.7609900003299,
"sendRecieve": {
"parallel": 233.5304539995268,
"series": 3869.6750210002065
}
}
-----------------------------------------
CACHE ensure-folder exists:
BEFORE:{
"openClose": 583.2204679995775,
"sendRecieve": {
"parallel": 206.64538500085473,
"series": 3861.489134998992
}
}
AFTER: {
"openClose": 544.0778630003333,
"sendRecieve": {
"parallel": 220.51885700039566,
"series": 2255.5608139988035
}
}
4431
4425
4417
4405
4382
4376
4350
4319
===================================
13.11.2019
===================================
{
"openClose": 565.4872879981995,
"sendRecieve": {
"parallel": 181.46631100028753,
"series": 2321.6348760016263
}
}
===================================
3.12.2021
===================================
{
"openClose": 1110.2557100057602,
"sendRecieve": {
"parallel": 279.0764960050583,
"series": 2797.712993979454
},
"leaderElection": 2122.0940190553665
}
{
"openClose": 885.0331689119339,
"sendRecieve": {
"parallel": 279.1763379573822,
"series": 2232.475461959839
},
"leaderElection": 2150.9966419935226
}