sodiumperf

0.0.3 • Public • Published

sodiumperf

compare the performance of various cryptoprimitives in sodium

(by the way, using my secretbox_easy branch)

Method

This runs a script that runs an operation as many times as possible within 1 second. The total operations is then output, along with the number of operations/second compared to a sha256 hash. (i.e, how many sha256 hashes you could have done in the time to perform one operation)

first asymmetric primitives are tested, and then encryption/decryption is tested for inputs of increasing size. (32, 1024, 8096, 1048576 bytes)

results are here

note that the time to fail to decrypt a box is also measured. (this means calculate the poly1305 one time auth, but not calculating the keystream)

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.0
    0

Package Sidebar

Install

npm i sodiumperf

Weekly Downloads

2

Version

0.0.3

License

MIT

Last publish

Collaborators

  • dominictarr