Benchmarking Node.js packages - JSONSki Vs simdjson vs Javascript for JSON files.
-
Download datasets from here
-
Add the downloaded files to the datasets folder
- Run the following commands to immitate the results.
npm install
node nested_json_benchmark.js
node small_json_benchmark.js
node large_json_benchmark.js
-
Benchmarkify.js Read More: https://www.npmjs.com/package/benchmarkify to add your own benchmarks
-
console.time() Read More: https://developer.mozilla.org/en-US/docs/Web/API/console/time to add your own benchmarks
small_json_benchmark.js
Benchmarking is done using benchmarkify.js for smaller datasets.
large_json_benchmark.js
Benchmarking is done using console.time() API for larger datasets.
nested_json_benchmark.js
Benchmarking is done using console.time() API for larger datasets and complex nested queries.
-
Processor: 2.6 GHz 6 - Core Intel Core I7
-
Memory : 16 GB 2667 MHz DDR4
- Execution time in milliseconds using console.time() API
- Execution time in milliseconds using benchmarkify() API
- Note: Results may vary depending on the hardware. However, relative results are expected to remain same.