@thi.ng/bench 3.4.28 → 3.4.30

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-02-22T23:15:26Z
3
+ - **Last updated**: 2024-03-01T15:22:50Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -1,16 +1,5 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
  <!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
3
- > [!IMPORTANT]
4
- > ‼️ Announcing the thi.ng user survey 2024 📋
5
- >
6
- > [Please participate in the survey here!](https://forms.gle/XacbSDEmQMPZg8197)\
7
- > (open until end of February)
8
- >
9
- > **To achieve a better sample size, I'd highly appreciate if you could
10
- > circulate the link to this survey in your own networks.**
11
- >
12
- > [Discussion](https://github.com/thi-ng/umbrella/discussions/447)
13
-
14
3
  # ![@thi.ng/bench](https://media.thi.ng/umbrella/banners-20230807/thing-bench.svg?7a8d9aad)
15
4
 
16
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/bench.svg)](https://www.npmjs.com/package/@thi.ng/bench)
@@ -22,7 +11,7 @@
22
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
23
12
  > and anti-framework.
24
13
  >
25
- > 🚀 Help me to work full-time on these projects by [sponsoring me on
14
+ > 🚀 Please help me to work full-time on these projects by [sponsoring me on
26
15
  > GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
27
16
 
28
17
  - [About](#about)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/bench",
3
- "version": "3.4.28",
3
+ "version": "3.4.30",
4
4
  "description": "Benchmarking & profiling utilities w/ various statistics & formatters (CSV, JSON, Markdown etc.)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,11 +35,11 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.25"
38
+ "@thi.ng/api": "^8.9.27"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@microsoft/api-extractor": "^7.40.1",
42
- "@thi.ng/testament": "^0.4.19",
42
+ "@thi.ng/testament": "^0.4.21",
43
43
  "@types/node": "^20.11.17",
44
44
  "esbuild": "^0.20.0",
45
45
  "rimraf": "^5.0.5",
@@ -119,5 +119,5 @@
119
119
  ],
120
120
  "year": 2018
121
121
  },
122
- "gitHead": "16f2b92b5410bd35dcde6c2971c8e62783ebc472\n"
122
+ "gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n"
123
123
  }
package/profiler.d.ts CHANGED
@@ -104,6 +104,8 @@ export declare class Profiler implements IDeref<IObjectOf<ProfileResult>>, IEnab
104
104
  *
105
105
  * * @example
106
106
  * ```ts
107
+ * import { Profiler } from "@thi.ng/bench";
108
+ *
107
109
  * const profiler = new Profiler();
108
110
  *
109
111
  * // recursive function
@@ -170,6 +172,10 @@ export declare class Profiler implements IDeref<IObjectOf<ProfileResult>>, IEnab
170
172
  *
171
173
  * @example
172
174
  * ```ts
175
+ * import { Profiler } from "@thi.ng/bench";
176
+ *
177
+ * const profiler = new Profiler();
178
+ *
173
179
  * const sum = profiler.wrap(
174
180
  * "sum",
175
181
  * (vec: number[]) => vec.reduce((acc, x) => acc + x, 0)
package/profiler.js CHANGED
@@ -95,6 +95,8 @@ class Profiler {
95
95
  *
96
96
  * * @example
97
97
  * ```ts
98
+ * import { Profiler } from "@thi.ng/bench";
99
+ *
98
100
  * const profiler = new Profiler();
99
101
  *
100
102
  * // recursive function
@@ -196,6 +198,10 @@ class Profiler {
196
198
  *
197
199
  * @example
198
200
  * ```ts
201
+ * import { Profiler } from "@thi.ng/bench";
202
+ *
203
+ * const profiler = new Profiler();
204
+ *
199
205
  * const sum = profiler.wrap(
200
206
  * "sum",
201
207
  * (vec: number[]) => vec.reduce((acc, x) => acc + x, 0)