fix suite

This commit is contained in:
Marin Petrunić 2019-08-28 14:05:04 +02:00
parent 75b9a3bedf
commit edf107045a
2 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,5 @@
export {verifyInValidSignatureBenchmark} from './verifyInValidSignature'; // export {verifyInValidSignatureBenchmark} from './verifyInValidSignature';
export {verifyValidSignatureBenchmark} from './verifyValidSignature'; // export {verifyValidSignatureBenchmark} from './verifyValidSignature';
export {verifyValidAggregatedSignature} from './verifyValidAggregatedSignature'; export {verifyValidAggregatedSignature} from './verifyValidAggregatedSignature';
export {verifyInvalidAggregatedSignature} from './verifyInvalidAggregatedSignature'; // export {verifyInvalidAggregatedSignature} from './verifyInvalidAggregatedSignature';
export {aggregateSignaturesBenchmark} from './signatureAggregation'; // export {aggregateSignaturesBenchmark} from './signatureAggregation';

View File

@ -23,7 +23,7 @@ export function verifyValidAggregatedSignature(dir: string): BenchSuite {
const FUNCTION_NAME = "verifyValidAggregatedSignature"; // PLEASE FILL THIS OUT const FUNCTION_NAME = "verifyValidAggregatedSignature"; // PLEASE FILL THIS OUT
const verifyValidAggregatedSignature = function (): void { const verifyValidAggregatedSignature = function (): void {
global.verify(global.publicKeys, global.messages, global.signature, global.domain); console.log(global.verify(global.publicKeys, global.messages, global.signature, global.domain));
}; };
return { return {
@ -43,6 +43,8 @@ export function verifyValidAggregatedSignature(dir: string): BenchSuite {
global.signature = aggregateSignatures(signatures); global.signature = aggregateSignatures(signatures);
global.publicKeys.map(() => message); global.publicKeys.map(() => message);
}, },
file: dir + FUNCTION_NAME + ".txt" file: dir + FUNCTION_NAME + ".txt",
// profile: true,
name: FUNCTION_NAME,
}; };
} }