diff options
author | isaacs <i@izs.me> | 2013-04-30 14:50:21 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-05-14 11:36:04 -0700 |
commit | 201baa273b115350374312ae493d3502d0bf3436 (patch) | |
tree | 8d90190bde98b5c30868474c5c399d6b9608115c /benchmark/crypto/cipher-stream.js | |
parent | 6a833a38f6a30c983b93ab272eb31c0799364d94 (diff) | |
download | android-node-v8-201baa273b115350374312ae493d3502d0bf3436.tar.gz android-node-v8-201baa273b115350374312ae493d3502d0bf3436.tar.bz2 android-node-v8-201baa273b115350374312ae493d3502d0bf3436.zip |
benchmark: hash stream
Diffstat (limited to 'benchmark/crypto/cipher-stream.js')
-rw-r--r-- | benchmark/crypto/cipher-stream.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/benchmark/crypto/cipher-stream.js b/benchmark/crypto/cipher-stream.js index 2a48a7e3f3..4e81989317 100644 --- a/benchmark/crypto/cipher-stream.js +++ b/benchmark/crypto/cipher-stream.js @@ -16,8 +16,6 @@ function main(conf) { api = 'legacy'; } - var dur = conf.dur; - var crypto = require('crypto'); var assert = require('assert'); var alice = crypto.getDiffieHellman('modp5'); @@ -73,7 +71,7 @@ function streamWrite(alice, bob, message, encoding, writes) { bob.on('end', function() { // Gbits var bits = written * 8; - var gbits = written / (1024 * 1024 * 1024); + var gbits = bits / (1024 * 1024 * 1024); bench.end(gbits); }); |