nano-benchmark 1.0.2 → 1.0.4
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/README.md +11 -9
- package/package.json +14 -7
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
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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,8 @@ BSD 3-Clause License
|
|
|
112
112
|
|
|
113
113
|
## Release history
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
* 1.0.4: *Updated dependencies + added more tests.*
|
|
116
|
+
* 1.0.3: *Updated dependencies.*
|
|
117
|
+
* 1.0.2: *Added the `--self` option.*
|
|
118
|
+
* 1.0.1: *Added "self" argument to utilities so it can be used with Deno, Bun, etc.*
|
|
119
|
+
* 1.0.0: *Initial release.*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nano-benchmark",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Small utilities to benchmark code with Node.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -13,7 +13,13 @@
|
|
|
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",
|
|
20
|
+
"test:proc": "tape6-proc --flags FO",
|
|
21
|
+
"test:proc:bun": "bun run `npx tape6-proc --self` --flags FO",
|
|
22
|
+
"test:proc:deno": "deno run -A `npx tape6-proc --self` --flags FO --runFileArgs -A"
|
|
17
23
|
},
|
|
18
24
|
"repository": {
|
|
19
25
|
"type": "git",
|
|
@@ -38,15 +44,16 @@
|
|
|
38
44
|
"src"
|
|
39
45
|
],
|
|
40
46
|
"devDependencies": {
|
|
41
|
-
"tape-six": "^0.
|
|
47
|
+
"tape-six": "^1.0.2",
|
|
48
|
+
"tape-six-proc": "^1.0.0"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"commander": "^12.1.0",
|
|
52
|
+
"console-toolkit": "^1.2.3"
|
|
42
53
|
},
|
|
43
54
|
"tape6": {
|
|
44
55
|
"tests": [
|
|
45
56
|
"tests/test-*.*js"
|
|
46
57
|
]
|
|
47
|
-
},
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"commander": "^12.1.0",
|
|
50
|
-
"console-toolkit": "^1.2.0"
|
|
51
58
|
}
|
|
52
59
|
}
|