@thi.ng/bench 3.6.10 → 3.6.12
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 +3 -138
- package/README.md +1 -1
- package/package.json +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-01-
|
|
3
|
+
- **Last updated**: 2025-01-29T16:25:48Z
|
|
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.
|
|
7
|
+
Only versions published since **2022-01-01** are listed here.
|
|
8
|
+
Please consult the Git history for older version information.
|
|
7
9
|
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
8
10
|
|
|
9
11
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
@@ -88,140 +90,3 @@ and/or version bumps of transitive dependencies.
|
|
|
88
90
|
|
|
89
91
|
- add support for performance.now() ([f48cb35](https://github.com/thi-ng/umbrella/commit/f48cb35))
|
|
90
92
|
- update now() to add perf.now as primary fallback option
|
|
91
|
-
|
|
92
|
-
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.1.0) (2021-11-17)
|
|
93
|
-
|
|
94
|
-
#### 🚀 Features
|
|
95
|
-
|
|
96
|
-
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
97
|
-
Improving the overall build ergonomics
|
|
98
|
-
- introduced a tools workspaces
|
|
99
|
-
- imported it in all needed packages/examples
|
|
100
|
-
- inclusive project root
|
|
101
|
-
|
|
102
|
-
#### ♻️ Refactoring
|
|
103
|
-
|
|
104
|
-
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
105
|
-
this commit reverts (partly) changes made in:
|
|
106
|
-
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
107
|
-
overall purpose is better testament ergonomics:
|
|
108
|
-
instead of having to pass NODE_OPTIONS with every invocation
|
|
109
|
-
having a binary to handle this for us.
|
|
110
|
-
|
|
111
|
-
### [3.0.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.0.8) (2021-11-10)
|
|
112
|
-
|
|
113
|
-
#### ♻️ Refactoring
|
|
114
|
-
|
|
115
|
-
- update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
|
|
116
|
-
|
|
117
|
-
### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.0.1) (2021-10-13)
|
|
118
|
-
|
|
119
|
-
#### ♻️ Refactoring
|
|
120
|
-
|
|
121
|
-
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
122
|
-
- add .js suffix for all relative imports
|
|
123
|
-
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
124
|
-
|
|
125
|
-
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.0.0) (2021-10-12)
|
|
126
|
-
|
|
127
|
-
#### 🛑 Breaking changes
|
|
128
|
-
|
|
129
|
-
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
130
|
-
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
131
|
-
- only ESM modules will be published from now on
|
|
132
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
133
|
-
- i.e. launch NodeJS via:
|
|
134
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
135
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
136
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
137
|
-
Also:
|
|
138
|
-
- normalize/restructure/reorg all package.json files
|
|
139
|
-
- cleanup all build scripts, remove obsolete
|
|
140
|
-
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
141
|
-
|
|
142
|
-
#### 🚀 Features
|
|
143
|
-
|
|
144
|
-
- add timeDiff, Timestamp type ([c612de0](https://github.com/thi-ng/umbrella/commit/c612de0))
|
|
145
|
-
|
|
146
|
-
#### ♻️ Refactoring
|
|
147
|
-
|
|
148
|
-
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
149
|
-
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
150
|
-
- update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
|
|
151
|
-
|
|
152
|
-
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@2.1.0) (2021-03-12)
|
|
153
|
-
|
|
154
|
-
#### 🚀 Features
|
|
155
|
-
|
|
156
|
-
- add suite & formatters, update benchmark() ([5ea02bd](https://github.com/thi-ng/umbrella/commit/5ea02bd))
|
|
157
|
-
- add `suite()` benchmark runner
|
|
158
|
-
- update `BenchmarkOpts` & `benchmark()`
|
|
159
|
-
- add `size` option to configure calls per iteration
|
|
160
|
-
- add `format` option to configure formatter
|
|
161
|
-
- add `BenchmarkFormatter` interface
|
|
162
|
-
- add `FORMAT_DEFAULT`, `FORMAT_CSV` & `FORMAT_MD` formatters
|
|
163
|
-
|
|
164
|
-
### [2.0.24](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@2.0.24) (2020-12-07)
|
|
165
|
-
|
|
166
|
-
#### ♻️ Refactoring
|
|
167
|
-
|
|
168
|
-
- update type-only imports ([e6c8d98](https://github.com/thi-ng/umbrella/commit/e6c8d98))
|
|
169
|
-
|
|
170
|
-
### [2.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@2.0.6) (2020-04-03)
|
|
171
|
-
|
|
172
|
-
#### 🩹 Bug fixes
|
|
173
|
-
|
|
174
|
-
- fallback handlingin now() ([6494851](https://github.com/thi-ng/umbrella/commit/6494851))
|
|
175
|
-
- update timedResult() to always downscale to ms ([fb2c632](https://github.com/thi-ng/umbrella/commit/fb2c632))
|
|
176
|
-
|
|
177
|
-
### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@2.0.1) (2020-02-25)
|
|
178
|
-
|
|
179
|
-
#### ♻️ Refactoring
|
|
180
|
-
|
|
181
|
-
- update imports ([cfdcd3a](https://github.com/thi-ng/umbrella/commit/cfdcd3a))
|
|
182
|
-
|
|
183
|
-
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@2.0.0) (2020-01-24)
|
|
184
|
-
|
|
185
|
-
#### 🛑 Breaking changes
|
|
186
|
-
|
|
187
|
-
- add types, benchmark(), bigint timestamps, restructure ([e0af94c](https://github.com/thi-ng/umbrella/commit/e0af94c))
|
|
188
|
-
- split module into separate files
|
|
189
|
-
- add BenchmarkOpts / BenchmarkResult types
|
|
190
|
-
- add benchmark()
|
|
191
|
-
- add now() timestamp fn (uses nanosec timer on Node)
|
|
192
|
-
- BREAKING CHANGE: Though no public API change, this library internally
|
|
193
|
-
uses ES BigInt timestamps now (in Node via `process.hrtime.bigint()`).
|
|
194
|
-
|
|
195
|
-
#### 🩹 Bug fixes
|
|
196
|
-
|
|
197
|
-
- update now() to only OPTIONALLY use bigint timestamps ([7ac391b](https://github.com/thi-ng/umbrella/commit/7ac391b))
|
|
198
|
-
|
|
199
|
-
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@1.0.0) (2019-01-21)
|
|
200
|
-
|
|
201
|
-
#### 🛑 Breaking changes
|
|
202
|
-
|
|
203
|
-
- update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
|
|
204
|
-
- BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
|
|
205
|
-
- build scripts now first build ES6 modules in package root, then call
|
|
206
|
-
`scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
207
|
-
- all imports MUST be updated to only refer to package level
|
|
208
|
-
(not individual files anymore). tree shaking in user land will get rid of
|
|
209
|
-
all unused imported symbols.
|
|
210
|
-
|
|
211
|
-
## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@0.3.0) (2018-10-21)
|
|
212
|
-
|
|
213
|
-
#### 🚀 Features
|
|
214
|
-
|
|
215
|
-
- add timedResult() / benchResult() ([0cf708f](https://github.com/thi-ng/umbrella/commit/0cf708f))
|
|
216
|
-
|
|
217
|
-
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@0.2.0) (2018-08-28)
|
|
218
|
-
|
|
219
|
-
#### 🚀 Features
|
|
220
|
-
|
|
221
|
-
- add opt prefix arg, update docs ([4a37367](https://github.com/thi-ng/umbrella/commit/4a37367))
|
|
222
|
-
|
|
223
|
-
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@0.1.0) (2018-05-10)
|
|
224
|
-
|
|
225
|
-
#### 🚀 Features
|
|
226
|
-
|
|
227
|
-
- add new package [@thi.ng/bench](https://github.com/thi-ng/umbrella/tree/main/packages/bench) ([9466d4b](https://github.com/thi-ng/umbrella/commit/9466d4b))
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 201 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.
|
|
3
|
+
"version": "3.6.12",
|
|
4
4
|
"description": "Benchmarking & profiling utilities w/ various statistics & formatters (CSV, JSON, Markdown etc.)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,16 +40,15 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.11.
|
|
44
|
-
"@thi.ng/timestamp": "^1.1.
|
|
43
|
+
"@thi.ng/api": "^8.11.19",
|
|
44
|
+
"@thi.ng/timestamp": "^1.1.4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@
|
|
48
|
-
"@types/node": "^22.10.2",
|
|
47
|
+
"@types/node": "^22.10.10",
|
|
49
48
|
"esbuild": "^0.24.2",
|
|
50
49
|
"tools": "^0.0.1",
|
|
51
50
|
"typedoc": "^0.27.6",
|
|
52
|
-
"typescript": "^5.7.
|
|
51
|
+
"typescript": "^5.7.3"
|
|
53
52
|
},
|
|
54
53
|
"keywords": [
|
|
55
54
|
"benchmark",
|
|
@@ -122,5 +121,5 @@
|
|
|
122
121
|
],
|
|
123
122
|
"year": 2018
|
|
124
123
|
},
|
|
125
|
-
"gitHead": "
|
|
124
|
+
"gitHead": "fc1d498e8d4b690db873c30cc594352a804e7a65\n"
|
|
126
125
|
}
|