Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit 748728e

Browse files
committed
readme
1 parent 98ae68e commit 748728e

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
Benchmark your JS projects with nanosecond resolution.
44

5-
- Utilizes `process.hrtime` for 1ns resolution
6-
- Colorful formatting with nice units
7-
- No dependencies, only ~150 lines of code: as lightweight as possible to not interfere with benchmarked code
8-
- No code for estimating running time - specify samples manually
9-
- Shows relative margin of error, min/max runs **only if it's high**
5+
- Precise: 1ns resolution using `process.hrtime`
6+
- Lightweight: ~200 lines of code, no dependencies - to not interfere with benchmarked code
7+
- Readable: utilizes colors and nice units, shows rel. margin of error only if it's high
108

119
![](https://user-images.githubusercontent.com/574696/184465244-b5784438-6af8-4a3d-abaa-03a0057768e6.png)
1210

@@ -26,12 +24,11 @@ import bench from 'micro-bmark';
2624
Example output:
2725

2826
```
29-
getPublicKey() x 6,072 ops/sec @ 164μs/op ± 8.22% (min: 143μs, max: 17ms)
27+
getPublicKey x 6,072 ops/sec @ 164μs/op ± 8.22% [143μs..17ms]
3028
sign x 4,980 ops/sec @ 200μs/op
31-
signSync x 4,671 ops/sec @ 214μs/op
3229
verify x 969 ops/sec @ 1ms/op
3330
recoverPublicKey x 890 ops/sec @ 1ms/op
34-
getSharedSecret aka ecdh x 585 ops/sec @ 1ms/op
31+
getSharedSecret x 585 ops/sec @ 1ms/op
3532
```
3633

3734
## License

0 commit comments

Comments
 (0)