@yuuang/napi-quick-sort
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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.

Package Sidebar

Install

npm i @yuuang/napi-quick-sort

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

2.51 kB

Total Files

5

Last publish

Collaborators

  • zhangyuang