nano-benchmark 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +10 -9
  2. package/package.json +7 -4
package/README.md CHANGED
@@ -13,7 +13,7 @@ Two utilities are available:
13
13
  statistical significance, and presenting them in a tabular format.
14
14
 
15
15
  The utilities are mostly used to measure performance of your code and compare it with other variants.
16
- It is geared toward benchmarking and performance tuning of a small fast snippets of code, e.g.,
16
+ It is geared toward benchmarking and performance tuning of small fast snippets of code, e.g.,
17
17
  used in tight loops.
18
18
 
19
19
  ## Visual samples
@@ -44,11 +44,11 @@ the utility with alternative JavaScript interpreters.
44
44
  Examples with `bash`:
45
45
 
46
46
  ```bash
47
- $ npx nano-bench benchmark.js
48
- $ bun `npx nano-bench --self` benchmark.js
49
- $ deno run --allow-read --allow-hrtime `npx nano-bench --self` benchmark.js
50
- $ deno run -A `npx nano-bench --self` benchmark.js
51
- $ node `npx nano-bench --self` benchmark.js
47
+ npx nano-bench benchmark.js
48
+ bun `npx nano-bench --self` benchmark.js
49
+ deno run --allow-read --allow-hrtime `npx nano-bench --self` benchmark.js
50
+ deno run -A `npx nano-bench --self` benchmark.js
51
+ node `npx nano-bench --self` benchmark.js
52
52
  ```
53
53
 
54
54
  Don't forget to specify the appropriate permissions for Deno to run the benchmark scripts:
@@ -112,6 +112,7 @@ BSD 3-Clause License
112
112
 
113
113
  ## Release history
114
114
 
115
- - 1.0.2: *Added the `--self` option.*
116
- - 1.0.1: *Added "self" argument to utilities so it can be used with Deno, Bun, etc.*
117
- - 1.0.0: *Initial release.*
115
+ * 1.0.3: *Updated dependencies.*
116
+ * 1.0.2: *Added the `--self` option.*
117
+ * 1.0.1: *Added "self" argument to utilities so it can be used with Deno, Bun, etc.*
118
+ * 1.0.0: *Initial release.*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nano-benchmark",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Small utilities to benchmark code with Node.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -13,7 +13,10 @@
13
13
  "nano-watch": "./bin/nano-watch.js"
14
14
  },
15
15
  "scripts": {
16
- "test": "tape6 --flags FO"
16
+ "test": "tape6 --flags FO",
17
+ "test:bun": "tape6-bun --flags FO",
18
+ "test:deno-original": "tape6-deno --flags FO",
19
+ "test:deno": "deno run -A `tape6-runner main` --flags FO"
17
20
  },
18
21
  "repository": {
19
22
  "type": "git",
@@ -38,7 +41,7 @@
38
41
  "src"
39
42
  ],
40
43
  "devDependencies": {
41
- "tape-six": "^0.9.6"
44
+ "tape-six": "^0.12.2"
42
45
  },
43
46
  "tape6": {
44
47
  "tests": [
@@ -47,6 +50,6 @@
47
50
  },
48
51
  "dependencies": {
49
52
  "commander": "^12.1.0",
50
- "console-toolkit": "^1.2.0"
53
+ "console-toolkit": "^1.2.1"
51
54
  }
52
55
  }