historical benchmarks for each plebbit-js commit are saved to ./reports/<commit-hash>.txt and can be visualized at https://plebbit.github.io/plebbit-js-benchmarks/reports-ui
git clone https://github.com/estebanabaroa/plebbit-js-benchmark.git
npm install
npm run webpack
npm start -- --runtime node --benchmark fetch-ipns
npm start -- --runtime node|chrome --benchmark resolve-addresses|fetch-ipns|gateway-fetch-ipns|fetch-comment|publish
edit the file ./benchmark-options.js. this is needed to do manual debugging with specific plebbit options.
reports are saved to ./report.json. running npm start overwrites the previous report.
npm run report
npm run report:inline
npm run webpack
npm run webpack:watch
-
npm run webpackbundles./benchmarkfolder with all the benchmark scripts
-
npm startlaunchesnode ./start(with optional arguments--runtime <runtime> --benchmark <benchmark>)
-
node ./startlaunches:
-
./lib/serverwhich is needed to communicate with the browser benchmarks
-
- it reads
./benchmark-options.jsand iterates over all the benchmarks to do
- it reads
-
- for each benchmark to do, it launches either node or karma (browser) to execute it in an isolated environment (i.e. no plebbit-js caching)
-
- it launches
npm run reportto print the last report (saved to./report.json)
- it launches