summaryrefslogtreecommitdiff
path: root/benchmark/url/legacy-vs-whatwg-url-searchparams-serialize.js
Commit message (Collapse)AuthorAgeFilesLines
* test,benchmark: stop requiring URL and URLSearchParamsraisinten2021-01-181-1/+0
| | | | | | | | | Since the URL and URLSearchParams classes are available in the global object, there is no need to require them from 'url'. PR-URL: https://github.com/nodejs/node/pull/36927 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
* benchmark: swap var for let in url benchmarksAlex Ramirez2019-07-301-2/+2
| | | | | | | | | | In benchmark url directory this changes for loops using var to let when it applies for consistency PR-URL: https://github.com/nodejs/node/pull/28867 Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Rich Trott <rtrott@gmail.com>
* benchmark: pre-generate data set for URL benchmarksJoyee Cheung2018-11-201-1/+1
| | | | | | | | | | | | | | | | | 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>
* benchmark: fix benchmark for urlSergey Golovin2018-03-111-10/+10
| | | | | | | | | | | | Rename different parameters with the same names to make it possible to run tests for url benchmarks. PR-URL: https://github.com/nodejs/node/pull/19084 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* benchmark: (url) refactorRuben Bridgewater2018-02-011-2/+2
| | | | | PR-URL: https://github.com/nodejs/node/pull/18320 Reviewed-By: James M Snell <jasnell@gmail.com>
* benchmark: (url) use destructuringRuben Bridgewater2018-01-231-5/+1
| | | | | | PR-URL: https://github.com/nodejs/node/pull/18250 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* url: spec-compliant URLSearchParams serializerTimothy Gu2017-03-141-1/+1
| | | | | | | | PR-URL: https://github.com/nodejs/node/pull/11626 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
* benchmark: move url data to fixturesJoyee Cheung2017-02-151-12/+1
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/11264 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
* benchmark: URLSearchParams v.s. querystringJoyee Cheung2017-02-091-0/+64
Add benchmarks to compare the performance between URLSearchParams and querystring, remove duplicate benchmarks. PR-URL: https://github.com/nodejs/node/pull/11170 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>