这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@dchest
Copy link
Owner

@dchest dchest commented Jul 4, 2014

This version includes only faster XSalsa20, as Curve25519 in PR #19 was not faster.

Plus, all the new tests and tooling.

@dchest
Copy link
Owner Author

dchest commented Jul 4, 2014

Very rough benchmarks on Atom CPU N550 @ 1.50GHz.

Chrome:

NORMAL                                              FAST
 Benchmarking crypto_stream_xor      Benchmarking crypto_stream_xor
 0.20894274968658588 MB/s        2.028397565922921 MB/s

 Benchmarking crypto_onetimeauth     Benchmarking crypto_onetimeauth
 1.8018018018018018 MB/s         1.7953321364452424 MB/s

 Benchmarking crypto_secretbox       Benchmarking crypto_secretbox
 0.20304568527918782 MB/s        1.2106537530266344 MB/s

 Benchmarking secretbox          Benchmarking secretbox
 0.195160031225605 MB/s          1.122334455667789 MB/s

 Benchmarking secretbox.open         Benchmarking secretbox.open
 0.1719986240110079 MB/s         1.0660980810234542 MB/s

 Benchmarking crypto_scalarmult_bas  Benchmarking crypto_scalarmult_bas
 25.849335302806498 ops/s        26.35542168674699 ops/s

 Benchmarking box            Benchmarking box
 0.022930520522815866 MB/s       0.025458248472505093 MB/s

 Benchmarking box.open (valid)       Benchmarking box.open (valid)
 0.02252252252252252 MB/s        0.02543881963876876 MB/s

 Benchmarking box.open (invalid key  Benchmarking box.open (invalid key
 0.0253613999492772 MB/s         0.0259000259000259 MB/s

Firefox:

 Benchmarking crypto_stream_xor      Benchmarking crypto_stream_xor
 1.148105625717566 MB/s          6.25 MB/s

 Benchmarking crypto_onetimeauth     Benchmarking crypto_onetimeauth
 1.9342359767891684 MB/s         1.8656716417910448 MB/s

 Benchmarking crypto_secretbox       Benchmarking crypto_secretbox
 0.6920415224913494 MB/s         1.5479876160990713 MB/s

 Benchmarking secretbox          Benchmarking secretbox
 0.6422607578676943 MB/s         1.4619883040935673 MB/s

 Benchmarking secretbox.open         Benchmarking secretbox.open
 0.5952380952380952 MB/s         1.4306151645207439 MB/s

 Benchmarking crypto_scalarmult_bas  Benchmarking crypto_scalarmult_bas
 16.38960430812456 ops/s         16.646848989298455 ops/s

 Benchmarking box            Benchmarking box
 0.015725743041358705 MB/s       0.015867978419549348 MB/s

 Benchmarking box.open (valid)       Benchmarking box.open (valid)
 0.01552312946289972 MB/s        0.01554726368159204 MB/s

 Benchmarking box.open (invalid key  Benchmarking box.open (invalid key
 0.015815277558121146 MB/s       0.016048788316482106 MB/s

@dchest
Copy link
Owner Author

dchest commented Jul 4, 2014

Smallest droplet on DigitalOcean:

 Benchmarking crypto_stream_xor      Benchmarking crypto_stream_xor
 0.7507507507507507 MB/s         5.9523809523809526 MB/s

 Benchmarking crypto_onetimeauth     Benchmarking crypto_onetimeauth
 3.7313432835820897 MB/s         4.201680672268908 MB/s

 Benchmarking crypto_secretbox       Benchmarking crypto_secretbox
 0.6309148264984227 MB/s         2.544529262086514 MB/s

 Benchmarking crypto_hash        Benchmarking crypto_hash
 1268.6567164179105 ops/s        947.9553903345725 ops/s
 1.3477088948787062 MB/s         1.0245901639344261 MB/s

 Benchmarking secretbox          Benchmarking secretbox
 0.6153846153846154 MB/s         2.2271714922048997 MB/s

 Benchmarking secretbox.open         Benchmarking secretbox.open
 0.5288207297726071 MB/s         1.6339869281045751 MB/s

 Benchmarking crypto_scalarmult_bas  Benchmarking crypto_scalarmult_bas
 19.2466318394281 ops/s          16.073478760045923 ops/s

 Benchmarking box            Benchmarking box
 0.01895016107636915 MB/s        0.01868460388639761 MB/s

 Benchmarking box.open (valid)       Benchmarking box.open (valid)
 0.018754688672168042 MB/s       0.018511662347278787 MB/s

 Benchmarking box.open (invalid key  Benchmarking box.open (invalid key
 0.019105846388995033 MB/s       0.018115942028985508

@dchest dchest merged commit 81be96e into master Jul 4, 2014
@dchest dchest deleted the new-fast branch July 4, 2014 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants