@naturalcycles/bench-lib 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ export interface RunBenchOptions {
14
14
  * How many times to run.
15
15
  * Every second run will be in reverse order.
16
16
  *
17
- * @default 1
17
+ * @default 2
18
18
  */
19
19
  runs?: number;
20
20
  /**
@@ -22,7 +22,7 @@ exports.runBenchScript = runBenchScript;
22
22
  * Only DeferredFunctions are allowed, because of: https://github.com/bestiejs/benchmark.js/issues/111
23
23
  */
24
24
  async function runBench(opt) {
25
- const { runs = 1, writeSummary = true, asciiPlot = true, name = 'runBench' } = opt;
25
+ const { runs = 2, writeSummary = true, asciiPlot = true, name = 'runBench' } = opt;
26
26
  const { reportDirPath = `./tmp/${name}` } = opt;
27
27
  console.log(`running benchmark...\n\n`);
28
28
  const results = [];
package/package.json CHANGED
@@ -7,16 +7,16 @@
7
7
  "@naturalcycles/js-lib": "^14.0.0",
8
8
  "@naturalcycles/nodejs-lib": "^13.0.2",
9
9
  "autocannon": "^7.0.0",
10
- "benchmark": "^2.1.4",
11
- "express": "^4.17.1",
12
- "helmet": "^7.0.0"
10
+ "benchmark": "^2.1.4"
13
11
  },
14
12
  "devDependencies": {
15
13
  "@naturalcycles/dev-lib": "^13.6.0",
16
14
  "@types/benchmark": "^2.1.0",
17
15
  "@types/express": "^4.17.6",
18
16
  "@types/node": "^20.1.0",
17
+ "express": "^4.17.1",
19
18
  "fastify": "^4.6.0",
19
+ "helmet": "^7.0.0",
20
20
  "jest": "^29.0.3"
21
21
  },
22
22
  "files": [
@@ -34,7 +34,7 @@
34
34
  "engines": {
35
35
  "node": ">=18.12.0"
36
36
  },
37
- "version": "2.0.0",
37
+ "version": "2.1.0",
38
38
  "description": "Benchmarking library, based on Benchmark.js and Autocannon",
39
39
  "author": "Natural Cycles Team",
40
40
  "license": "MIT"