Commit 8793510
committed
crypto: improvement random syncrone number creating performance
this pr improve random syncron number creator
node git:(main) ✗ npx node-benchmark-compare rb.csv
confidence improvement accuracy (*) (**) (***)
crypto/randomBytes.js n=100000 size=1024 *** 77.15 % ±3.14% ±4.18% ±5.45%
crypto/randomBytes.js n=100000 size=16384 -4.11 % ±5.22% ±6.95% ±9.04%
crypto/randomBytes.js n=100000 size=64 *** 107.53 % ±5.13% ±6.85% ±8.96%
crypto/randomBytes.js n=100000 size=8192 *** 24.62 % ±4.48% ±5.98% ±7.81%
Assisted-by:Claude Code Opus 5.5
Signed-off-by: Mert Can Altin <mertgold60@gmail.com>1 parent 3641c36 commit 8793510
2 files changed
Lines changed: 22 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 179 | + | |
188 | 180 | | |
189 | 181 | | |
190 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
217 | 235 | | |
| 236 | + | |
218 | 237 | | |
219 | 238 | | |
220 | 239 | | |
221 | 240 | | |
222 | 241 | | |
223 | 242 | | |
| 243 | + | |
224 | 244 | | |
225 | 245 | | |
226 | 246 | | |
| |||
0 commit comments