Skip to content

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
meloalright authored May 7, 2023
1 parent d8dfaae commit a26e15b
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 29 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,36 @@ nanoid() // => AeogKAGjUMX6mqB4sMzWe

```rust
js-nanoid:
3 312 758 ops/s, ±0.40%
3 318 612 ops/s, ±1.10%

napi-nanoid:
5 413 480 ops/s, ±0.21%
5 141 154 ops/s, ±0.84%

js-nanoid (non-secure):
1 846 206 ops/s, ±0.26%
2 005 501 ops/s, ±0.15%

napi-nanoid (non-secure):
5 648 410 ops/s, ±0.09%
5 359 638 ops/s, ±0.13%
```

`performance of all`

```rust
shortid 23,659 ops/sec
cuid 100,672 ops/sec
secure-random-string 194,024 ops/sec
uuid 837,116 ops/sec
js-nanoid (non-secure) 1,928,304 ops/sec
js-nanoid (secure) 3,286,650 ops/sec
napi-nanoid (secure) 5,125,939 ops/sec
napi-nanoid (non-secure) 5,290,560 ops/sec
crypto.randomUUID 10,601,453 ops/sec
hyperid 14,736,232 ops/sec
shortid 23,900 ops/sec
cuid 102,473 ops/sec
secure-random-string 194,803 ops/sec
uuid 839,287 ops/sec
js-nanoid (non-secure) 1,944,889 ops/sec
js-nanoid (secure) 3,323,263 ops/sec
napi-nanoid (secure) 4,862,067 ops/sec
napi-nanoid (non-secure) 5,007,932 ops/sec
crypto.randomUUID 10,658,212 ops/sec
hyperid 14,534,342 ops/sec
```

Benchmark configuration: Linux x64 gnu, Intel(R) Xeon(R) CPU E5-2673 v3 @ 2.40GHz, Node.js 16.19.0
Benchmark configuration: Linux x64 gnu, Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz, Node.js 16.20.0

[(runs: 4093065024)](https://github.com/rustq/napi-nanoid/actions/runs/4093065024/jobs/7058254207)
[(runs: 4905855849)](https://github.com/rustq/napi-nanoid/actions/runs/4905855849/jobs/8759930864)

## Support matrix

Expand Down
2 changes: 1 addition & 1 deletion npm/android-arm-eabi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}
2 changes: 1 addition & 1 deletion npm/android-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}
2 changes: 1 addition & 1 deletion npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}
2 changes: 1 addition & 1 deletion npm/freebsd-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}
2 changes: 1 addition & 1 deletion npm/linux-arm-gnueabihf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}
2 changes: 1 addition & 1 deletion npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}
2 changes: 1 addition & 1 deletion npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}
2 changes: 1 addition & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}
2 changes: 1 addition & 1 deletion npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}
2 changes: 1 addition & 1 deletion npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}
2 changes: 1 addition & 1 deletion npm/win32-ia32-msvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}
2 changes: 1 addition & 1 deletion npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"access": "public"
},
"repository": "[email protected]:rustq/napi-nanoid.git"
}
}

0 comments on commit a26e15b

Please sign in to comment.