@naturalcycles/bench-lib 4.1.0 → 4.3.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.
@@ -1,6 +1,8 @@
1
- import { _range, pDefer } from '@naturalcycles/js-lib';
2
- import { dimGrey, runScript, yellow } from '@naturalcycles/nodejs-lib';
3
- import { fs2 } from '@naturalcycles/nodejs-lib/fs';
1
+ import { _range } from '@naturalcycles/js-lib';
2
+ import { pDefer } from '@naturalcycles/js-lib/promise';
3
+ import { runScript } from '@naturalcycles/nodejs-lib';
4
+ import { dimGrey, yellow } from '@naturalcycles/nodejs-lib/colors';
5
+ import { fs2 } from '@naturalcycles/nodejs-lib/fs2';
4
6
  import Benchmark from 'benchmark';
5
7
  import { plotAsciiChart } from './asciiChart.util.js';
6
8
  /**
@@ -1,4 +1,4 @@
1
- import type { StringMap } from '@naturalcycles/js-lib';
1
+ import type { StringMap } from '@naturalcycles/js-lib/types';
2
2
  import type { AutocannonSummary, HttpServerFactory, RunCannonOptions } from './cannon.model.js';
3
3
  /**
4
4
  * Wraps `runBench` in `runScript` for convenience, so it can be run in top-level without `await`.
@@ -1,6 +1,9 @@
1
- import { _omit, _range, pDefer, pDelay } from '@naturalcycles/js-lib';
2
- import { boldRed, dimGrey, runScript, yellow } from '@naturalcycles/nodejs-lib';
3
- import { fs2 } from '@naturalcycles/nodejs-lib/fs';
1
+ import { _range } from '@naturalcycles/js-lib';
2
+ import { _omit } from '@naturalcycles/js-lib/object';
3
+ import { pDefer, pDelay } from '@naturalcycles/js-lib/promise';
4
+ import { runScript } from '@naturalcycles/nodejs-lib';
5
+ import { boldRed, dimGrey, yellow } from '@naturalcycles/nodejs-lib/colors';
6
+ import { fs2 } from '@naturalcycles/nodejs-lib/fs2';
4
7
  import hdr from 'hdr-histogram-js';
5
8
  /**
6
9
  * Wraps `runBench` in `runScript` for convenience, so it can be run in top-level without `await`.
package/package.json CHANGED
@@ -39,7 +39,7 @@
39
39
  "engines": {
40
40
  "node": ">=22.12.0"
41
41
  },
42
- "version": "4.1.0",
42
+ "version": "4.3.0",
43
43
  "description": "Benchmarking library, based on Benchmark.js and Autocannon",
44
44
  "author": "Natural Cycles Team",
45
45
  "license": "MIT",