@thi.ng/bench 3.6.28 → 3.6.33
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/package.json +125 -125
- package/CHANGELOG.md +0 -92
package/package.json
CHANGED
|
@@ -1,126 +1,126 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
2
|
+
"name": "@thi.ng/bench",
|
|
3
|
+
"version": "3.6.33",
|
|
4
|
+
"description": "Benchmarking & profiling utilities w/ various statistics & formatters (CSV, JSON, Markdown etc.)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://thi.ng/bench",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "liberapay",
|
|
25
|
+
"url": "https://liberapay.com/thi.ng"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"author": "Karsten Schmidt <k+npm@thi.ng>",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "yarn build:esbuild && yarn build:decl",
|
|
32
|
+
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
33
|
+
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
34
|
+
"clean": "bun ../../tools/src/clean-package.ts format",
|
|
35
|
+
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
36
|
+
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
37
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
38
|
+
"pub": "npm publish --access public",
|
|
39
|
+
"test": "bun test",
|
|
40
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@thi.ng/api": "^8.12.6",
|
|
44
|
+
"@thi.ng/timestamp": "^1.1.25"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@types/node": "^24.9.1",
|
|
48
|
+
"esbuild": "^0.25.11",
|
|
49
|
+
"tools": "workspace:^",
|
|
50
|
+
"typedoc": "^0.28.14",
|
|
51
|
+
"typescript": "^5.9.3"
|
|
52
|
+
},
|
|
53
|
+
"keywords": [
|
|
54
|
+
"benchmark",
|
|
55
|
+
"bigint",
|
|
56
|
+
"csv",
|
|
57
|
+
"format",
|
|
58
|
+
"functional",
|
|
59
|
+
"markdown",
|
|
60
|
+
"measure",
|
|
61
|
+
"statistics",
|
|
62
|
+
"table",
|
|
63
|
+
"time",
|
|
64
|
+
"timestamp",
|
|
65
|
+
"typescript"
|
|
66
|
+
],
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public"
|
|
69
|
+
},
|
|
70
|
+
"browser": {
|
|
71
|
+
"process": false,
|
|
72
|
+
"setTimeout": false
|
|
73
|
+
},
|
|
74
|
+
"engines": {
|
|
75
|
+
"node": ">=18"
|
|
76
|
+
},
|
|
77
|
+
"files": [
|
|
78
|
+
"./*.js",
|
|
79
|
+
"./*.d.ts",
|
|
80
|
+
"format"
|
|
81
|
+
],
|
|
82
|
+
"exports": {
|
|
83
|
+
".": {
|
|
84
|
+
"default": "./index.js"
|
|
85
|
+
},
|
|
86
|
+
"./api": {
|
|
87
|
+
"default": "./api.js"
|
|
88
|
+
},
|
|
89
|
+
"./bench": {
|
|
90
|
+
"default": "./bench.js"
|
|
91
|
+
},
|
|
92
|
+
"./benchmark": {
|
|
93
|
+
"default": "./benchmark.js"
|
|
94
|
+
},
|
|
95
|
+
"./format/csv": {
|
|
96
|
+
"default": "./format/csv.js"
|
|
97
|
+
},
|
|
98
|
+
"./format/default": {
|
|
99
|
+
"default": "./format/default.js"
|
|
100
|
+
},
|
|
101
|
+
"./format/markdown": {
|
|
102
|
+
"default": "./format/markdown.js"
|
|
103
|
+
},
|
|
104
|
+
"./now": {
|
|
105
|
+
"default": "./now.js"
|
|
106
|
+
},
|
|
107
|
+
"./profiler": {
|
|
108
|
+
"default": "./profiler.js"
|
|
109
|
+
},
|
|
110
|
+
"./suite": {
|
|
111
|
+
"default": "./suite.js"
|
|
112
|
+
},
|
|
113
|
+
"./timed": {
|
|
114
|
+
"default": "./timed.js"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"thi.ng": {
|
|
118
|
+
"related": [
|
|
119
|
+
"csv",
|
|
120
|
+
"markdown-table"
|
|
121
|
+
],
|
|
122
|
+
"tag": "benchmark",
|
|
123
|
+
"year": 2018
|
|
124
|
+
},
|
|
125
|
+
"gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
|
|
126
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
- **Last updated**: 2025-08-04T09:13:01Z
|
|
4
|
-
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
-
|
|
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.
|
|
9
|
-
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
10
|
-
|
|
11
|
-
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
|
-
and/or version bumps of transitive dependencies.
|
|
13
|
-
|
|
14
|
-
### [3.6.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.6.8) (2024-12-27)
|
|
15
|
-
|
|
16
|
-
#### ♻️ Refactoring
|
|
17
|
-
|
|
18
|
-
- migrate timestamp fns to [@thi.ng/timestamp](https://github.com/thi-ng/umbrella/tree/main/packages/timestamp) ([f178b1a](https://github.com/thi-ng/umbrella/commit/f178b1a))
|
|
19
|
-
- update deps
|
|
20
|
-
- update exports
|
|
21
|
-
- update readme
|
|
22
|
-
|
|
23
|
-
## [3.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.6.0) (2024-08-10)
|
|
24
|
-
|
|
25
|
-
#### 🚀 Features
|
|
26
|
-
|
|
27
|
-
- add poisson-image example ([87ec9e7](https://github.com/thi-ng/umbrella/commit/87ec9e7))
|
|
28
|
-
- update readmes
|
|
29
|
-
- cc @nkint :)
|
|
30
|
-
|
|
31
|
-
### [3.5.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.5.7) (2024-06-21)
|
|
32
|
-
|
|
33
|
-
#### ♻️ Refactoring
|
|
34
|
-
|
|
35
|
-
- enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
|
|
36
|
-
|
|
37
|
-
### [3.5.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.5.1) (2024-03-27)
|
|
38
|
-
|
|
39
|
-
#### 🩹 Bug fixes
|
|
40
|
-
|
|
41
|
-
- fix optional arg type for timeDiff() ([29825ac](https://github.com/thi-ng/umbrella/commit/29825ac))
|
|
42
|
-
|
|
43
|
-
## [3.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.5.0) (2024-03-13)
|
|
44
|
-
|
|
45
|
-
#### 🚀 Features
|
|
46
|
-
|
|
47
|
-
- add frequency stat (i.e. ops/sec) ([0e6576a](https://github.com/thi-ng/umbrella/commit/0e6576a))
|
|
48
|
-
- add `BenchmarkOpts.extSize`
|
|
49
|
-
- update `benchmark()`
|
|
50
|
-
- update all formatters
|
|
51
|
-
- add `setPrecision()` to adjust float formatter
|
|
52
|
-
|
|
53
|
-
### [3.4.28](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.4.28) (2024-02-22)
|
|
54
|
-
|
|
55
|
-
#### ♻️ Refactoring
|
|
56
|
-
|
|
57
|
-
- update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
|
|
58
|
-
|
|
59
|
-
### [3.4.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.4.9) (2023-11-09)
|
|
60
|
-
|
|
61
|
-
#### ♻️ Refactoring
|
|
62
|
-
|
|
63
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
64
|
-
|
|
65
|
-
## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.4.0) (2023-06-14)
|
|
66
|
-
|
|
67
|
-
#### 🚀 Features
|
|
68
|
-
|
|
69
|
-
- add Profiler.profile()/wrap(), minor fixes ([0f3b44b](https://github.com/thi-ng/umbrella/commit/0f3b44b))
|
|
70
|
-
- update session total to be sum of all profiled calls,
|
|
71
|
-
rather than wallclock time
|
|
72
|
-
- fix field order in Profiler.asCSV()
|
|
73
|
-
|
|
74
|
-
## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.3.0) (2023-06-13)
|
|
75
|
-
|
|
76
|
-
#### 🚀 Features
|
|
77
|
-
|
|
78
|
-
- add profiler ([5fdd867](https://github.com/thi-ng/umbrella/commit/5fdd867))
|
|
79
|
-
|
|
80
|
-
### [3.2.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.2.3) (2023-02-17)
|
|
81
|
-
|
|
82
|
-
#### ♻️ Refactoring
|
|
83
|
-
|
|
84
|
-
- update timeDiff() ([37054e0](https://github.com/thi-ng/umbrella/commit/37054e0))
|
|
85
|
-
- default 2nd arg to current timestamp
|
|
86
|
-
|
|
87
|
-
## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.2.0) (2023-02-05)
|
|
88
|
-
|
|
89
|
-
#### 🚀 Features
|
|
90
|
-
|
|
91
|
-
- add support for performance.now() ([f48cb35](https://github.com/thi-ng/umbrella/commit/f48cb35))
|
|
92
|
-
- update now() to add perf.now as primary fallback option
|