Fix benchmark setup

This commit is contained in:
dapplion 2020-12-01 08:29:19 +00:00
parent fa3c9a8c47
commit 4e2f60b5b8
7 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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";

View File

@ -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"

View File

@ -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",

View File

@ -1,6 +1,5 @@
{
"include": ["src", "test"],
"exclude": ["test/benchmark"],
"compilerOptions": {
"target": "esnext",
"module": "commonjs",