0.1.1 • Published 4 years ago

@yuuang/napi-quick-sort v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

quickSort

As this article says, napi call overhead is expensive。it's not apposite to realize sort algorithms

$ yarn bench
yarn run v1.22.4
$ cross-env NODE_ENV=production node benchmark/quickSort.js
quickSort by js x 145,726,560 ops/sec ±0.40% (90 runs sampled)
quickSort by napi x 2,517,344 ops/sec ±0.34% (89 runs sampled)
Fastest is quickSort by js
✨  Done in 12.98s.