Files
zk-kit/benchmarks/index.ts
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()
}