@bunchmark/core
Advanced tools
Comparing version 1.0.0-pre-5 to 1.0.0-pre-6
{ | ||
"name": "@bunchmark/core", | ||
"version": "1.0.0-pre-5", | ||
"version": "1.0.0-pre-6", | ||
"description": "benchmarking lib", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -79,3 +79,3 @@ // @ts-check | ||
*/ | ||
function bake({ tasks, preamble = "", beforeEach = "", afterEach = "", header, footer }) { | ||
function bake({ tasks, preamble = "", beforeEach = "", afterEach = "", footer }) { | ||
return ` | ||
@@ -97,3 +97,3 @@ ${stringify({ preamble })}; | ||
function compiler({ tasks, preamble = "", beforeEach = "", afterEach = "" }) { | ||
const source = bake({ tasks, preamble, beforeEach, afterEach, header, footer }); | ||
const source = bake({ tasks, preamble, beforeEach, afterEach, footer }); | ||
/** | ||
@@ -100,0 +100,0 @@ * @type {Sampler[]} samplers |
@@ -169,3 +169,2 @@ export { run }; | ||
* @param {Options} options | ||
* @param {((o:Options)=>Sampler[])} compiler | ||
* @returns {Promise<Result>} | ||
@@ -172,0 +171,0 @@ */ |
@@ -40,3 +40,3 @@ export type Sampler = ((N: number)=>Promise<number>) | ||
handle?: {} | ||
compiler?: (o:Options)=>Sampler[] | ||
compiler?: (o:Options)=>(Promise<Sampler[]>|Sampler[]) | ||
onTick?: (t: Result)=>void | ||
@@ -43,0 +43,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16410
496