在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ipfs/benchmarks开源软件地址:https://github.com/ipfs/benchmarks开源编程语言:JavaScript 92.9%开源软件介绍:js-ipfs BenchmarksThis is a set of benchmarks tests to track js-ipfs Benchmarks in a Grafana Dashboard. PurposeThe IPFS team needs a historical view of various performance metrics around The goal is to provide immediate feedback and long-term tracking around performance to developers and the community with an extremely low barrier. The CI system integrating code changes will trigger benchmark runs as well a scheduled run every night. Each run will provide a URL where the results will be visible. This project also provides a possibility to run tests locally on a development
version of Documentation Index
Benchmarks on the webThe dashboard is available at https://benchmarks.ipfs.team and can be viewed without a user account.
A > curl -XPOST -d '{"commit":"adfy3hk"}' \
-H "Content-Type: application/json" \
-H "x-ipfs-benchmarks-api-key: <api-key>" \
https://benchmarks.ipfs.team/runner The response provides links to the output produced by the benchmark tests:
For more details about the dashboard see the Grafana doc. QuickstartClone Benchmark tests and install: > git clone https://github.com/ipfs/benchmarks.git
> cd benchmarks/runner
> npm install
> cd ../tests
> npm install Generate test filesThe files are defined in fixtures. > npm run generateFiles Add test filesHere is the file object for a single test: { size: KB, name: 'OneKBFile' } To add multiple test files add a count property: { size: KB, name: 'OneHundredKBFile', count: 100 } Run tests locallyFrom the > node local-add
> node local-extract
> node local-transfer Run all benchmarks: > npm run benchmark Create a pre-generated key: > node util/create-privateKey FILESETUse env variable > FILESET="One64MBFile" node local-add VERIFYOFFUse env variable > VERIFYOFF=true node local-add Run tests locally on a js-ipfs branchInside the > ./getIpfs.sh ../ Directory structure now :
Run tests against branch > cd benchmarks/tests
> STAGE=local REMOTE=true node local-add FLAGSBelow is a list of optional flags used by the tests to run a specific strategy or transport module in Libp2p.
Adding new testsSee README. ResultsResults will be written to out directory under
LicenseCopyright (c) Protocol Labs, Inc. under the MIT license. See LICENSE file for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论