@thi.ng/bench 3.4.27 → 3.4.28

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-22T11:59:16Z
3
+ - **Last updated**: 2024-02-22T23:15:26Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [3.4.28](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.4.28) (2024-02-22)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
17
+
12
18
  ### [3.4.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.4.9) (2023-11-09)
13
19
 
14
20
  #### ♻️ Refactoring
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/bench",
3
- "version": "3.4.27",
3
+ "version": "3.4.28",
4
4
  "description": "Benchmarking & profiling utilities w/ various statistics & formatters (CSV, JSON, Markdown etc.)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -119,5 +119,5 @@
119
119
  ],
120
120
  "year": 2018
121
121
  },
122
- "gitHead": "4513a1c703bdbf0f0867f03e547e47692e415fac\n"
122
+ "gitHead": "16f2b92b5410bd35dcde6c2971c8e62783ebc472\n"
123
123
  }
package/profiler.js CHANGED
@@ -5,12 +5,8 @@ class Profiler {
5
5
  _profiles;
6
6
  _enabled;
7
7
  _overhead = 0;
8
- constructor(opts) {
9
- const { warmup, enabled } = {
10
- warmup: 1e6,
11
- enabled: true,
12
- ...opts
13
- };
8
+ constructor(opts = {}) {
9
+ const { warmup = 1e6, enabled = true } = opts;
14
10
  this.enable();
15
11
  if (warmup > 0)
16
12
  this.warmup(warmup);