bench: fix require.

This commit is contained in:
Christopher Jeffrey 2016-09-06 18:21:06 -07:00
parent c9ebe29e39
commit 22236aab9c
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -38,8 +38,8 @@ for (var i = 0; i < 1000000; i++) {
end(i * 32 / 1024);
// For reference:
var utils = require('../lib/bcoin/utils');
var crypto = require('../lib/crypto/crypto');
var end = bench('sha256');
for (var i = 0; i < 1000000; i++)
utils.hash256(data);
crypto.hash256(data);
end(i * 32 / 1024);