summaryrefslogtreecommitdiff
path: root/test/benchmark
Commit message (Collapse)AuthorAgeFilesLines
* test: fix test-benchmark-netRich Trott2019-08-281-0/+3
| | | | | | | | Fix test-benchmark-net to accommodate recent benchmark additions. PR-URL: https://github.com/nodejs/node/pull/29359 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* buffer: improve equals() performanceBrian White2019-08-211-0/+1
| | | | | | | | | | | PR-URL: https://github.com/nodejs/node/pull/29199 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
* test: add required settings to test-benchmark-bufferRich Trott2019-08-161-0/+2
| | | | | | | | | | A benchmark was added but the appropriate settings were not added to test-benchmark-buffer. These two additions make sure that the new benchmark file only runs a single benchmark during testing. PR-URL: https://github.com/nodejs/node/pull/29163 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
* benchmark: use test/common/tmpdir consistentlyJoão Reis2019-08-101-1/+1
| | | | | | | | | | | | | | | | | Many benchmarks use test/common/tmpdir. This changes 3 benchmarks that use NODE_TMPDIR to also use test/common/tmpdir. This is necessary in preparation for the next commit that changes tmpdir to delete tmpdir.path when the Node.js process exits. Thus, if multiple benchmarks are run sequentially, the ones that use tmpdir will remove the directory and the ones changed here would fail because it does not exist. This happens when running test/benchmark. Note: to explicitly select a directory for tmpdir, use NODE_TEST_DIR. PR-URL: https://github.com/nodejs/node/pull/28858 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* benchmark: add benchmark for node -pJoyee Cheung2019-04-281-0/+1
| | | | | PR-URL: https://github.com/nodejs/node/pull/27320 Reviewed-By: James M Snell <jasnell@gmail.com>
* test: fix test-benchmark-bufferRich Trott2019-04-181-1/+1
| | | | | | | | | | | | | Using `len=2` in test-benchmark-buffer was resulting in a `RangeError` in buffer-base64-encode.js. Change to `len=256` which works in all buffer benchmarks. PR-URL: https://github.com/nodejs/node/pull/27260 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
* test: fix test-benchmark-moduleRich Trott2019-04-041-1/+5
| | | | | | | | A recent commit broke test-benchmark-module. This fixes it. PR-URL: https://github.com/nodejs/node/pull/27094 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Bryan English <bryan@bryanenglish.com>
* benchmark,test: refactoringRefael Ackermann2019-02-181-5/+3
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/26119 Refs: https://github.com/nodejs/node/pull/26101 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
* test: add arg to narrow http benchmark testRefael Ackermann2019-02-141-1/+2
| | | | | | | | PR-URL: https://github.com/nodejs/node/pull/26101 Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* test: fix test-benchmark-zlibRich Trott2019-01-061-0/+1
| | | | | | | | | | The addition of brotli to zlib benchmarks means that test-benchmark-zlib needs to be modified. This is that modification. PR-URL: https://github.com/nodejs/node/pull/25365 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
* benchmark: support URL inputs in create-clientrequestJoyee Cheung2018-11-201-0/+3
| | | | | | | | | | This patch adds the option in the create-clientrequest benchmark to accept URL inputs (as strings or as URL objects) so we can measure the impact of URL parsing in a more sophisticated use case. PR-URL: https://github.com/nodejs/node/pull/24302 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* benchmark: pre-generate data set for URL benchmarksJoyee Cheung2018-11-201-1/+3
| | | | | | | | | | | | | | | | | This patch: - Introduces `common.bakeUrlData` which can be used to pre-generate the data set for the URL benchmarks to loop through instead of looping over a constant. - Add the option to use WPT data in benchmarks for better diversity in the input - Add the option to benchmark URL parsing with base URLs (whatwg only) - Moves the data in `benchmark/fixtures/url-inputs.js` to `benchmark/common.js` PR-URL: https://github.com/nodejs/node/pull/24302 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* test: move benchmark tests out of main test suiteRich Trott2018-11-1034-0/+573
Move benchmark tests (which are slow) out of the main test suite. We can hopefully add them to node-daily-master so that they are still run daily on CI. PR-URL: https://github.com/nodejs/node/pull/24265 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>