🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

orbit-db-benchmark-runner

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orbit-db-benchmark-runner

OrbitDB Benchmark Runner

2.0.1
latest
Source
npm
Version published
Weekly downloads
128
1063.64%
Maintainers
3
Weekly downloads
 
Created
Source

OrbitDB Benchmark Runner (benchmark-runner)

Gitter Matrix

OrbitDB Benchmark Runner

Install

npm i orbit-db-benchmark-runner

CLI Usage

Check cli.js or use npx benchmarker -h for help

If you want to run benchmarks in a folder have their file name end in .benchmark.js.

Options:
  -V, --version             output the version number
  -b, --benchmarks <path>   benchmark folder or file (default: "./benchmarks")
  -o, --output <file path>  report output path (.html or .json)
  -i, --baselines <path>    baselines to use for comparison (.json output)
  --no-node                 skip nodejs benchmarks
  --no-browser              skip browser benchmarks
Running Comparisons
  • Create the baseline report output to use for comparison: npx benchmarker -o report.json
  • Use the output baseline report with the baseline option: npx benchmarker -i report.json

benchmarks ran for comparison are best ran on their own machine or a machine with few other things happening in the background

Writing Benchmarks

Benchmark files must export an object with an asynchronous method benchmark. The method takes 1 parameter benchmarker which is used to control the recording and give information about the benchmark. Please see test.benchmark.js for an example.

Contributing

If you think this could be better, please open an issue!

Please note that all interactions in @orbitdb fall under our Code of Conduct.

Note: The commits of this repository had to be fixed from the initial import. This means if you had forked the repo and had prepared contributions, you need now to rebase them against the latest master. There should not be any conflicts.

License

MIT © OrbitDB Community

Keywords

orbitdb

FAQs

Package last updated on 04 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts