Closed ai closed 6 years ago
Merging #43 into master will not change coverage. The diff coverage is
100%
.
@@ Coverage Diff @@
## master #43 +/- ##
=======================================
Coverage 95.83% 95.83%
=======================================
Files 30 30
Lines 480 480
=======================================
Hits 460 460
Misses 20 20
Impacted Files | Coverage Δ | |
---|---|---|
app/extend/context.js | 100% <100%> (ø) |
:arrow_up: |
lib/middlewares/hsts.js | 100% <0%> (ø) |
:arrow_up: |
lib/safe_redirect.js | 100% <0%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update ca20599...899451a. Read the comment docs.
@fengmk2 Good news, everyone :).
nanoid/non-secure
performance and now we are 10% faster$ ./test/benchmark
nanoid 354,201 ops/sec
nanoid/generate 348,467 ops/sec
uid.sync 325,347 ops/sec
uuid/v4 322,328 ops/sec
shortid 33,277 ops/sec
Async:
uid 71,998 ops/sec
nanoid/async 72,836 ops/sec
Non-secure:
rndm 2,495,324 ops/sec
nanoid/non-secure 2,746,033 ops/sec
@ai thanks a lot!
rndm
useMath.random
which is predictable and non-secure.nanoid
uses hardware random generator which is much faster.Also
nanoid
is very fast and popular tool.