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 {runBenchmark} from "./runner";
import {runForAllImplementations} from "../switch"; import {runForAllImplementations} from "../test/switch";
import {PublicKey, Signature} from "../../src/interface"; import {PublicKey, Signature} from "../src/interface";
import {range, randomMessage} from "../util"; import {range, randomMessage} from "../test/util";
const aggCount = 30; const aggCount = 30;

View File

@ -1,5 +1,5 @@
import {runBenchmark} from "./runner"; import {runBenchmark} from "./runner";
import {range, randomMessage} from "../util"; import {range, randomMessage} from "../test/util";
import {generateRandomSecretKey} from "@chainsafe/bls-keygen"; import {generateRandomSecretKey} from "@chainsafe/bls-keygen";
import * as noble from "noble-bls12-381"; import * as noble from "noble-bls12-381";

View File

@ -4,7 +4,8 @@
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"benchmark": "ts-node index && ts-node noble" "benchmark": "ts-node index",
"benchmark:all": "ts-node index && ts-node noble"
}, },
"dependencies": { "dependencies": {
"noble-bls12-381": "^0.6.1" "noble-bls12-381": "^0.6.1"

View File

@ -43,8 +43,8 @@
"test": "yarn run test:unit && yarn run test:spec", "test": "yarn run test:unit && yarn run test:spec",
"download-test-cases": "ts-node test/downloadSpecTests.ts", "download-test-cases": "ts-node test/downloadSpecTests.ts",
"coverage": "codecov -F bls", "coverage": "codecov -F bls",
"benchmark": "ts-node test/benchmark", "benchmark": "ts-node benchmark",
"benchmark:all": "cd test/benchmark && yarn install && yarn benchmark" "benchmark:all": "cd benchmark && yarn install && yarn benchmark"
}, },
"dependencies": { "dependencies": {
"@chainsafe/bls-keygen": "^0.3.0", "@chainsafe/bls-keygen": "^0.3.0",

View File

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