Files
zk-kit/benchmarks/index.ts
2022-06-24 12:36:09 +02:00

14 lines
404 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()
}