filecoin-project / orient

↻Observe-Orient-Decide-Act↩
MIT License
18 stars 6 forks source link

Import benchmark data from rust-fil-proofs #13

Closed porcuquine closed 4 years ago

porcuquine commented 5 years ago

To get the latest benchmarks, click here: https://circleci.com/gh/filecoin-project/workflows/rust-fil-proofs/tree/master

Then, click on the latest green build. Then, click on metrics_capture job. Then, click on either Run hash-constraints benchmarks on remote host, Run micro benchmarks, or Run ZigZag benchmarks using 1GiB sectors.


If these files are imported manually and given the sensible names included in the following command, it will assemble them into an acceptable 'canonical' single json import file.

> jq -s '.[0] * {benchmarks: {"hash-constraints": .[0].benchmarks, "zigzag-benchmarks": .[1].benchmarks, "micro-benchmarks": [.[2].benchmarks]}}' hash-constraints.json zigzag-benchmarks.json micro-benchmarks.json

NOTE: this script assumes but does not check that the three component JSON files are consistent and contain identical objects for the values of the git and system keys in their respective top-level objects. This is a valid assumption when all three JSON files have been harvested from the same CircleCI metrics_capture job.

For the initial version, commit that script (or some variant) and run it as part of the import process. Formalizing this process will simplify new manual imports for now. Later this step can be moved to rust-fil-proofs so we only receive the assembled result.

porcuquine commented 4 years ago

Ubercalc now belongs in Filecoin spec.