|
1 | | -aminy@LAPTOP-DHBEBJRL ~\Documents\GitHub\JavaScript\@atom-ide-community\zadeh master ≣ [22:48] |
2 | | -❯ pnpm benchmark |
3 | 1 |
|
4 | | -> [email protected]. 3 benchmark C:\Users\aminy\Documents\GitHub\JavaScript\@atom-ide-community\ zadeh |
| 2 | +> [email protected]. 4 benchmark C:\Users\aminy\Documents\GitHub\JavaScript\@atom-ide-community\ fuzzaldrin-plus-fast |
5 | 3 | > npm run benchmark:small && npm run benchmark:regular && npm run benchmark:large && npm run benchmark:tree |
6 | 4 |
|
7 | 5 |
|
8 | | -> [email protected]. 3 benchmark:small C:\Users\aminy\Documents\GitHub\JavaScript\@atom-ide-community\ zadeh |
| 6 | +> [email protected]. 4 benchmark:small C:\Users\aminy\Documents\GitHub\JavaScript\@atom-ide-community\ fuzzaldrin-plus-fast |
9 | 7 | > node benchmark/benchmark-small.js |
10 | 8 |
|
11 | 9 | ====== Running test - query:nm ====== |
12 | | -zadeh vs. legacy: 0.19 ms | 0.52 ms |
| 10 | +zadeh vs. legacy: 0.19 ms | 0.51 ms |
13 | 11 | length of the result: 100, length of the lines: 100 |
14 | 12 |
|
15 | 13 | ====== Running test - query:npm ====== |
16 | | -zadeh vs. legacy: 0.15 ms | 3.77 ms |
| 14 | +zadeh vs. legacy: 0.42 ms | 3.86 ms |
17 | 15 | length of the result: 55, length of the lines: 100 |
18 | 16 |
|
19 | 17 | ====== Running test - query:node ====== |
20 | | -zadeh vs. legacy: 0.15 ms | 1.34 ms |
| 18 | +zadeh vs. legacy: 0.16 ms | 1.3 ms |
21 | 19 | length of the result: 100, length of the lines: 100 |
22 | 20 |
|
23 | 21 | ====== Running test - query:grunt ====== |
24 | | -zadeh vs. legacy: 0.2 ms | 0.26 ms |
| 22 | +zadeh vs. legacy: 0.14 ms | 0.33 ms |
25 | 23 | length of the result: 33, length of the lines: 100 |
26 | 24 |
|
27 | 25 | ====== Running test - query:html ====== |
28 | | -zadeh vs. legacy: 0.1 ms | 0.45 ms |
| 26 | +zadeh vs. legacy: 0.11 ms | 0.46 ms |
29 | 27 | length of the result: 10, length of the lines: 100 |
30 | 28 |
|
31 | 29 | ====== Running test - query:doc ====== |
32 | | -zadeh vs. legacy: 0.23 ms | 3.71 ms |
| 30 | +zadeh vs. legacy: 0.26 ms | 3.69 ms |
33 | 31 | length of the result: 87, length of the lines: 100 |
34 | 32 |
|
35 | 33 | ====== Running test - query:cli ====== |
36 | | -zadeh vs. legacy: 0.89 ms | 1.63 ms |
| 34 | +zadeh vs. legacy: 0.38 ms | 1.61 ms |
37 | 35 | length of the result: 57, length of the lines: 100 |
38 | 36 |
|
39 | 37 | ====== Running test - query:js ====== |
40 | | -zadeh vs. legacy: 0.17 ms | 0.44 ms |
| 38 | +zadeh vs. legacy: 0.14 ms | 0.31 ms |
41 | 39 | length of the result: 60, length of the lines: 100 |
42 | 40 |
|
43 | 41 | ====== Running test - query:jas ====== |
44 | | -zadeh vs. legacy: 0.15 ms | 0.5 ms |
| 42 | +zadeh vs. legacy: 0.14 ms | 0.48 ms |
45 | 43 | length of the result: 19, length of the lines: 100 |
46 | 44 |
|
47 | 45 | ====== Running test - query:mine ====== |
48 | | -zadeh vs. legacy: 0.24 ms | 2.48 ms |
| 46 | +zadeh vs. legacy: 0.22 ms | 2.4 ms |
49 | 47 | length of the result: 65, length of the lines: 100 |
50 | 48 |
|
51 | 49 | ====== Running test - query:stream ====== |
52 | | -zadeh vs. legacy: 0.15 ms | 1.26 ms |
| 50 | +zadeh vs. legacy: 0.16 ms | 1.29 ms |
53 | 51 | length of the result: 19, length of the lines: 100 |
54 | 52 |
|
55 | 53 |
|
56 | | -> [email protected]. 3 benchmark:regular C:\Users\aminy\Documents\GitHub\JavaScript\@atom-ide-community\ zadeh |
| 54 | +> [email protected]. 4 benchmark:regular C:\Users\aminy\Documents\GitHub\JavaScript\@atom-ide-community\ fuzzaldrin-plus-fast |
57 | 55 | > node benchmark/benchmark.js |
58 | 56 |
|
59 | 57 | ====== Running test - query:index ====== |
60 | 58 | ~10% of results are positive, mix exact & fuzzy |
61 | | -zadeh vs. legacy: 26.6 ms | 42.98 ms |
| 59 | +zadeh vs. legacy: 27.41 ms | 42.58 ms |
62 | 60 | length of the result: 6168, length of the lines: 66672 |
63 | 61 |
|
64 | 62 | ====== Running test - query:indx ====== |
65 | 63 | ~10% of results are positive, Fuzzy match |
66 | | -zadeh vs. legacy: 26.48 ms | 48.69 ms |
| 64 | +zadeh vs. legacy: 27.49 ms | 48.34 ms |
67 | 65 | length of the result: 6192, length of the lines: 66672 |
68 | 66 |
|
69 | 67 | ====== Running test - query:walkdr ====== |
70 | 68 | ~1% of results are positive, fuzzy |
71 | | -zadeh vs. legacy: 23.62 ms | 15.56 ms |
| 69 | +zadeh vs. legacy: 25.83 ms | 15.7 ms |
72 | 70 | length of the result: 504, length of the lines: 66672 |
73 | 71 | zadeh is SLOWER |
74 | 72 |
|
75 | 73 | ====== Running test - query:node ====== |
76 | 74 | ~98% of results are positive, mostly Exact match |
77 | | -zadeh vs. legacy: 40.91 ms | 66.81 ms |
| 75 | +zadeh vs. legacy: 40.36 ms | 68.62 ms |
78 | 76 | length of the result: 65136, length of the lines: 66672 |
79 | 77 |
|
80 | 78 | ====== Running test - query:nm ====== |
81 | 79 | ~98% of results are positive, Acronym match |
82 | | -zadeh vs. legacy: 38.32 ms | 61.2 ms |
| 80 | +zadeh vs. legacy: 38.94 ms | 64.32 ms |
83 | 81 | length of the result: 65208, length of the lines: 66672 |
84 | 82 |
|
85 | 83 | ====== Running test - query:nm ====== |
86 | 84 | ~98% of results + Fuzzy match, [Worst case scenario] |
87 | | -zadeh vs. legacy: 38.38 ms | 51.83 ms |
| 85 | +zadeh vs. legacy: 38.7 ms | 48.69 ms |
88 | 86 | length of the result: 65208, length of the lines: 66672 |
89 | 87 |
|
90 | 88 | ====== Running test - query:nm ====== |
91 | 89 | ~98% of results + Fuzzy match, [Mitigation] |
92 | | -zadeh vs. legacy: 39.13 ms | 52.08 ms |
| 90 | +zadeh vs. legacy: 38.19 ms | 57.74 ms |
93 | 91 | length of the result: 65208, length of the lines: 66672 |
94 | 92 |
|
95 | 93 | ====== Running test - query:ndem ====== |
96 | 94 | ~98% of results + Fuzzy match, [Worst case but shorter string] |
97 | | -zadeh vs. legacy: 43.48 ms | 207.84 ms |
| 95 | +zadeh vs. legacy: 45.93 ms | 229.78 ms |
98 | 96 | length of the result: 65124, length of the lines: 66672 |
99 | 97 |
|
100 | | -Matching 66672 results for 'index' (Prepare in advance) took 284.09 ms |
101 | | -Matching 66672 results for 'index' (cache) took 272.74 ms |
102 | | -Matching 66672 results for 'index' (_legacy_) took 80.52 ms |
| 98 | +Matching 66672 results for 'index' (Prepare in advance) took 275.81 ms |
| 99 | +Matching 66672 results for 'index' (cache) took 274.02 ms |
| 100 | +Matching 66672 results for 'index' (_legacy_) took 81.18 ms |
103 | 101 |
|
104 | | -> [email protected]. 3 benchmark:large C:\Users\aminy\Documents\GitHub\JavaScript\@atom-ide-community\ zadeh |
| 102 | +> [email protected]. 4 benchmark:large C:\Users\aminy\Documents\GitHub\JavaScript\@atom-ide-community\ fuzzaldrin-plus-fast |
105 | 103 | > node benchmark/benchmark-large.js |
106 | 104 |
|
107 | | -TwoLetter _legacy_ took 12058.96 ms |
108 | | -TwoLetter direct filter took 2815.90 ms |
109 | | -TwoLetter setCandidates took 396.62 ms |
| 105 | +TwoLetter _legacy_ took 10776.69 ms |
| 106 | +TwoLetter direct filter took 3234.20 ms |
| 107 | +TwoLetter setCandidates took 414.90 ms |
110 | 108 | ====== |
111 | | -ThreeLetter _legacy_ took 8741.91 ms |
112 | | -ThreeLetter direct filter took 2859.64 ms |
113 | | -ThreeLetter setCandidates took 377.44 ms |
| 109 | +ThreeLetter _legacy_ took 9632.80 ms |
| 110 | +ThreeLetter direct filter took 3286.15 ms |
| 111 | +ThreeLetter setCandidates took 383.19 ms |
114 | 112 | ====== |
115 | | -TwoLetter keybased filter took 3255.72 ms |
116 | | -ThreeLetter keybased filter took 3694.09 ms |
| 113 | +TwoLetter keybased filter took 3776.86 ms |
| 114 | +ThreeLetter keybased filter took 4413.96 ms |
117 | 115 | ====== |
118 | | -setCandidates took 184.88 ms |
119 | | -TwoLetter filter took 392.21 ms |
120 | | -ThreeLetter filter took 395.06 ms |
| 116 | +setCandidates took 219.13 ms |
| 117 | +TwoLetter filter took 393.76 ms |
| 118 | +ThreeLetter filter took 406.25 ms |
121 | 119 | ====== |
122 | | -setCandidates keybased took 190.06 ms |
123 | | -TwoLetter keybased filter took 392.12 ms |
124 | | -ThreeLetter keybased filter took 399.40 ms |
| 120 | +setCandidates keybased took 227.17 ms |
| 121 | +TwoLetter keybased filter took 402.38 ms |
| 122 | +ThreeLetter keybased filter took 416.81 ms |
125 | 123 |
|
126 | | -> [email protected]. 3 benchmark:tree C:\Users\aminy\Documents\GitHub\JavaScript\@atom-ide-community\ zadeh |
| 124 | +> [email protected]. 4 benchmark:tree C:\Users\aminy\Documents\GitHub\JavaScript\@atom-ide-community\ fuzzaldrin-plus-fast |
127 | 125 | > node benchmark/benchmark-tree.js |
128 | 126 |
|
129 | | -TreeFilterer.setCandidates: took 2.03 ms |
130 | | -TreeFilterer.filter text took 0.79 ms |
131 | | -TreeFilterer.filter dips took 0.43 ms |
132 | | -TreeFilterer.filter disp took 0.30 ms |
133 | | -TreeFilterer.filter txt took 0.37 ms |
134 | | -TreeFilterer.filter getBuffer took 0.28 ms |
| 127 | +TreeFilterer.setCandidates: took 2.21 ms |
| 128 | +TreeFilterer.filter text took 0.54 ms |
| 129 | +TreeFilterer.filter dips took 0.41 ms |
| 130 | +TreeFilterer.filter disp took 0.36 ms |
| 131 | +TreeFilterer.filter txt took 0.42 ms |
| 132 | +TreeFilterer.filter getBuffer took 0.29 ms |
135 | 133 |
|
136 | | -TreeFilterer.filter average: 0.434 ms |
| 134 | +TreeFilterer.filter average: 0.404 ms |
137 | 135 |
|
138 | | -filterTree text took 2.64 ms |
139 | | -filterTree dips took 2.26 ms |
140 | | -filterTree disp took 3.08 ms |
141 | | -filterTree txt: took 2.35 ms |
142 | | -filterTree getBuffer: took 2.33 ms |
| 136 | +filterTree text took 2.83 ms |
| 137 | +filterTree dips took 2.43 ms |
| 138 | +filterTree disp took 3.54 ms |
| 139 | +filterTree txt: took 2.77 ms |
| 140 | +filterTree getBuffer: took 2.37 ms |
143 | 141 |
|
144 | | -filterTree average: 2.532 ms |
| 142 | +filterTree average: 2.788 ms |
0 commit comments