Commit 0617c5e
benchmark: stablize encode benchmark
- Increase the number of iteration to 1e6 to reduce flakes. 1e4
can introduce flakes even when comparing the main branch
against itself
- Replace the 1024 * 32 length test with 1024 * 8 since it would
otherwise take too long to complete. Remove the 16 length test
since it's not too different from 32.
- Check the results of the encoding methods at the end.
PR-URL: #46658
Reviewed-By: Darshan Sen <raisinten@gmail.com>1 parent 069ff1c commit 0617c5eCopy full SHA for 0617c5e
File tree
Expand file treeCollapse file tree
1 file changed
+22
-17
lines changedOpen diff view settings
Filter options
- benchmark/util
Expand file treeCollapse file tree
1 file changed
+22
-17
lines changedOpen diff view settings
Collapse file
benchmark/util/text-encoder.js
Copy file name to clipboard+22-17Lines changed: 22 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
4 | 5 | |
5 | 6 | |
6 | | - |
7 | | - |
| 7 | + |
| 8 | + |
8 | 9 | |
9 | 10 | |
10 | 11 | |
| ||
26 | 27 | |
27 | 28 | |
28 | 29 | |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
43 | 49 | |
44 | | - |
45 | 50 | |
0 commit comments