@thi.ng/bench 3.6.36 → 3.6.37

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.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 210 standalone projects, maintained as part
10
+ > This is one of 211 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/bench",
3
- "version": "3.6.36",
3
+ "version": "3.6.37",
4
4
  "description": "Benchmarking & profiling utilities w/ various statistics & formatters (CSV, JSON, Markdown etc.)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,8 +40,8 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.12.9",
44
- "@thi.ng/timestamp": "^1.1.28"
43
+ "@thi.ng/api": "^8.12.10",
44
+ "@thi.ng/timestamp": "^1.1.29"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/node": "^24.10.1",
@@ -122,5 +122,5 @@
122
122
  "tag": "benchmark",
123
123
  "year": 2018
124
124
  },
125
- "gitHead": "fdca77cabf47dd23a9ab17a5ca13e3060075c12c\n"
125
+ "gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
126
126
  }
package/profiler.js CHANGED
@@ -64,7 +64,7 @@ class Profiler {
64
64
  if (!_session) return {};
65
65
  const res = {};
66
66
  const sessionTotal = asMillis(_session.total) - _session.calls * _overhead;
67
- for (let id in _profiles) {
67
+ for (const id in _profiles) {
68
68
  const profile = _profiles[id];
69
69
  const total = asMillis(profile.total) - profile.calls * _overhead;
70
70
  const totalPercent = total / sessionTotal * 100;
@@ -268,7 +268,7 @@ class Profiler {
268
268
  `"id","total (ms)","time/call (ms)","total (%)","calls","calls (%)","max depth"`
269
269
  ];
270
270
  const stats = this.deref();
271
- for (let id of Object.keys(stats).sort()) {
271
+ for (const id of Object.keys(stats).sort()) {
272
272
  const {
273
273
  total,
274
274
  timePerCall,
package/suite.js CHANGED
@@ -6,7 +6,7 @@ const suite = (cases, opts) => {
6
6
  };
7
7
  _opts.output && outputString(_opts.format.prefix());
8
8
  const results = [];
9
- for (let c of cases) {
9
+ for (const c of cases) {
10
10
  results.push(benchmark(c.fn, { ..._opts, ...c.opts, title: c.title }));
11
11
  }
12
12
  _opts.output && outputString(_opts.format.total(results));