Fix benchmark setup
This commit is contained in:
parent
fa3c9a8c47
commit
4e2f60b5b8
|
@ -1,7 +1,7 @@
|
|||
import {runBenchmark} from "./runner";
|
||||
import {runForAllImplementations} from "../switch";
|
||||
import {PublicKey, Signature} from "../../src/interface";
|
||||
import {range, randomMessage} from "../util";
|
||||
import {runForAllImplementations} from "../test/switch";
|
||||
import {PublicKey, Signature} from "../src/interface";
|
||||
import {range, randomMessage} from "../test/util";
|
||||
|
||||
const aggCount = 30;
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import {runBenchmark} from "./runner";
|
||||
import {range, randomMessage} from "../util";
|
||||
import {range, randomMessage} from "../test/util";
|
||||
import {generateRandomSecretKey} from "@chainsafe/bls-keygen";
|
||||
import * as noble from "noble-bls12-381";
|
||||
|
|
@ -4,7 +4,8 @@
|
|||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"benchmark": "ts-node index && ts-node noble"
|
||||
"benchmark": "ts-node index",
|
||||
"benchmark:all": "ts-node index && ts-node noble"
|
||||
},
|
||||
"dependencies": {
|
||||
"noble-bls12-381": "^0.6.1"
|
|
@ -43,8 +43,8 @@
|
|||
"test": "yarn run test:unit && yarn run test:spec",
|
||||
"download-test-cases": "ts-node test/downloadSpecTests.ts",
|
||||
"coverage": "codecov -F bls",
|
||||
"benchmark": "ts-node test/benchmark",
|
||||
"benchmark:all": "cd test/benchmark && yarn install && yarn benchmark"
|
||||
"benchmark": "ts-node benchmark",
|
||||
"benchmark:all": "cd benchmark && yarn install && yarn benchmark"
|
||||
},
|
||||
"dependencies": {
|
||||
"@chainsafe/bls-keygen": "^0.3.0",
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"include": ["src", "test"],
|
||||
"exclude": ["test/benchmark"],
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "commonjs",
|
||||
|
|
Reference in New Issue