Created
June 13, 2021 23:08
-
-
Save Ethan-Arrowood/e132fb72e5ef4156dfc0de3b80ef3c16 to your computer and use it in GitHub Desktop.
The result of running benchmark suite for undici headers class from https://github.com/Ethan-Arrowood/undici-fetch/tree/benchmark-headers/benchmarks/headers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Benchmark results for Headers class | |
| Tested modules: undici-fetch, node-fetch, ./implementations/mapHeaders.js | |
| Benchmark Suite results for operation: append | |
| ┌─────────┬───────────────────────────────────┬───────────────────────┬────────────────────────────────────┐ | |
| │ (index) │ Module │ Total Time │ Result │ | |
| ├─────────┼───────────────────────────────────┼───────────────────────┼────────────────────────────────────┤ | |
| │ 0 │ 'undici-fetch' │ '552168ns (0.552ms)' │ null │ | |
| │ 1 │ 'node-fetch' │ '1095718ns (1.096ms)' │ '98.439% slower than undici-fetch' │ | |
| │ 2 │ './implementations/mapHeaders.js' │ '624987ns (0.625ms)' │ '13.188% slower than undici-fetch' │ | |
| └─────────┴───────────────────────────────────┴───────────────────────┴────────────────────────────────────┘ | |
| Benchmark Suite results for operation: delete | |
| ┌─────────┬───────────────────────────────────┬──────────────────────┬─────────────────────────────────────┐ | |
| │ (index) │ Module │ Total Time │ Result │ | |
| ├─────────┼───────────────────────────────────┼──────────────────────┼─────────────────────────────────────┤ | |
| │ 0 │ 'undici-fetch' │ '127006ns (0.127ms)' │ null │ | |
| │ 1 │ 'node-fetch' │ '354808ns (0.355ms)' │ '179.363% slower than undici-fetch' │ | |
| │ 2 │ './implementations/mapHeaders.js' │ '119299ns (0.119ms)' │ '6.068% faster than undici-fetch' │ | |
| └─────────┴───────────────────────────────────┴──────────────────────┴─────────────────────────────────────┘ | |
| Benchmark Suite results for operation: entries | |
| ┌─────────┬───────────────────────────────────┬─────────────────────────┬───────────────────────────────────────┐ | |
| │ (index) │ Module │ Total Time │ Result │ | |
| ├─────────┼───────────────────────────────────┼─────────────────────────┼───────────────────────────────────────┤ | |
| │ 0 │ 'undici-fetch' │ '113691ns (0.114ms)' │ null │ | |
| │ 1 │ 'node-fetch' │ '3035038ns (3.035ms)' │ '2569.550% slower than undici-fetch' │ | |
| │ 2 │ './implementations/mapHeaders.js' │ '18557454ns (18.557ms)' │ '16222.712% slower than undici-fetch' │ | |
| └─────────┴───────────────────────────────────┴─────────────────────────┴───────────────────────────────────────┘ | |
| Benchmark Suite results for operation: forEach | |
| ┌─────────┬───────────────────────────────────┬─────────────────────────┬───────────────────────────────────────┐ | |
| │ (index) │ Module │ Total Time │ Result │ | |
| ├─────────┼───────────────────────────────────┼─────────────────────────┼───────────────────────────────────────┤ | |
| │ 0 │ 'undici-fetch' │ '67133ns (0.067ms)' │ null │ | |
| │ 1 │ 'node-fetch' │ '2769868ns (2.770ms)' │ '4025.941% slower than undici-fetch' │ | |
| │ 2 │ './implementations/mapHeaders.js' │ '23184154ns (23.184ms)' │ '34434.661% slower than undici-fetch' │ | |
| └─────────┴───────────────────────────────────┴─────────────────────────┴───────────────────────────────────────┘ | |
| Benchmark Suite results for operation: get | |
| ┌─────────┬───────────────────────────────────┬──────────────────────┬─────────────────────────────────────┐ | |
| │ (index) │ Module │ Total Time │ Result │ | |
| ├─────────┼───────────────────────────────────┼──────────────────────┼─────────────────────────────────────┤ | |
| │ 0 │ 'undici-fetch' │ '165196ns (0.165ms)' │ null │ | |
| │ 1 │ 'node-fetch' │ '543491ns (0.543ms)' │ '228.998% slower than undici-fetch' │ | |
| │ 2 │ './implementations/mapHeaders.js' │ '110979ns (0.111ms)' │ '32.820% faster than undici-fetch' │ | |
| └─────────┴───────────────────────────────────┴──────────────────────┴─────────────────────────────────────┘ | |
| Benchmark Suite results for operation: has | |
| ┌─────────┬───────────────────────────────────┬──────────────────────┬─────────────────────────────────────┐ | |
| │ (index) │ Module │ Total Time │ Result │ | |
| ├─────────┼───────────────────────────────────┼──────────────────────┼─────────────────────────────────────┤ | |
| │ 0 │ 'undici-fetch' │ '160678ns (0.161ms)' │ null │ | |
| │ 1 │ 'node-fetch' │ '590974ns (0.591ms)' │ '267.800% slower than undici-fetch' │ | |
| │ 2 │ './implementations/mapHeaders.js' │ '112708ns (0.113ms)' │ '29.855% faster than undici-fetch' │ | |
| └─────────┴───────────────────────────────────┴──────────────────────┴─────────────────────────────────────┘ | |
| Benchmark Suite results for operation: iterate | |
| ┌─────────┬───────────────────────────────────┬─────────────────────────┬───────────────────────────────────────┐ | |
| │ (index) │ Module │ Total Time │ Result │ | |
| ├─────────┼───────────────────────────────────┼─────────────────────────┼───────────────────────────────────────┤ | |
| │ 0 │ 'undici-fetch' │ '94320ns (0.094ms)' │ null │ | |
| │ 1 │ 'node-fetch' │ '2663835ns (2.664ms)' │ '2724.253% slower than undici-fetch' │ | |
| │ 2 │ './implementations/mapHeaders.js' │ '34805640ns (34.806ms)' │ '36801.654% slower than undici-fetch' │ | |
| └─────────┴───────────────────────────────────┴─────────────────────────┴───────────────────────────────────────┘ | |
| Benchmark Suite results for operation: keys | |
| ┌─────────┬───────────────────────────────────┬─────────────────────────┬───────────────────────────────────────┐ | |
| │ (index) │ Module │ Total Time │ Result │ | |
| ├─────────┼───────────────────────────────────┼─────────────────────────┼───────────────────────────────────────┤ | |
| │ 0 │ 'undici-fetch' │ '126520ns (0.127ms)' │ null │ | |
| │ 1 │ 'node-fetch' │ '1639850ns (1.640ms)' │ '1196.119% slower than undici-fetch' │ | |
| │ 2 │ './implementations/mapHeaders.js' │ '13504249ns (13.504ms)' │ '10573.608% slower than undici-fetch' │ | |
| └─────────┴───────────────────────────────────┴─────────────────────────┴───────────────────────────────────────┘ | |
| Benchmark Suite results for operation: set | |
| ┌─────────┬───────────────────────────────────┬──────────────────────┬────────────────────────────────────┐ | |
| │ (index) │ Module │ Total Time │ Result │ | |
| ├─────────┼───────────────────────────────────┼──────────────────────┼────────────────────────────────────┤ | |
| │ 0 │ 'undici-fetch' │ '619530ns (0.620ms)' │ null │ | |
| │ 1 │ 'node-fetch' │ '796558ns (0.797ms)' │ '28.575% slower than undici-fetch' │ | |
| │ 2 │ './implementations/mapHeaders.js' │ '626715ns (0.627ms)' │ '1.160% slower than undici-fetch' │ | |
| └─────────┴───────────────────────────────────┴──────────────────────┴────────────────────────────────────┘ | |
| Benchmark Suite results for operation: values | |
| ┌─────────┬───────────────────────────────────┬─────────────────────────┬───────────────────────────────────────┐ | |
| │ (index) │ Module │ Total Time │ Result │ | |
| ├─────────┼───────────────────────────────────┼─────────────────────────┼───────────────────────────────────────┤ | |
| │ 0 │ 'undici-fetch' │ '108510ns (0.109ms)' │ null │ | |
| │ 1 │ 'node-fetch' │ '1990879ns (1.991ms)' │ '1734.742% slower than undici-fetch' │ | |
| │ 2 │ './implementations/mapHeaders.js' │ '35499381ns (35.499ms)' │ '32615.308% slower than undici-fetch' │ | |
| └─────────┴───────────────────────────────────┴─────────────────────────┴───────────────────────────────────────┘ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment