Files
zk-kit/benchmarks/index.ts
cedoor b7f3de86f5 chore: move benchmarks in the root folder
Former-commit-id: 2aa52b2e396f1aa5d3fbe5487019aba7f85895f1 [formerly 88b71415a772bdf1e96ab9c7d94157a733fb467a] [formerly 590abd6e0a6146462ca32e8f6ee50e27c7dca0a7 [formerly aded04b919]]
Former-commit-id: 041cfc9c9c7f705fd8e0b3cafd377b51a92ad34d [formerly a6d426be61e32cdcd7e097438e6bf6b25868d0cc]
Former-commit-id: 488980eadde4ad8f0ddf0b54d38e789b91822d49
2022-01-23 14:10:32 +01:00

14 lines
388 B
TypeScript

import runIncrementalMerkleTree from "./incremental-merkle-tree"
const [benchmark] = process.argv.slice(2)
// If there is an argument with a specific benchmark to run, it will run only that
// benchmark, otherwise it will run all the benchmarks.
switch (benchmark) {
case "incremental-merkle-tree":
runIncrementalMerkleTree()
break
default:
runIncrementalMerkleTree()
}