New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Weekly downloads
15
increased by87.5%
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
  1. Create the baseline report output to use for comparison: npx benchmarker -o report.json
  2. 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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc