Fix benchmark setup
This commit is contained in:
parent
fa3c9a8c47
commit
4e2f60b5b8
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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"
|
|
@ -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",
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
"include": ["src", "test"],
|
"include": ["src", "test"],
|
||||||
"exclude": ["test/benchmark"],
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
|
|
Reference in New Issue