0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00

benchmark: add/remove hash algorithm

add sha1, sha512 algorithm and remove md5

PR-URL: https://github.com/iojs/io.js/pull/1325
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Shigeki Ohtsu 2015-04-02 21:33:24 +09:00
parent f782824d48
commit 1c709f3aa9

View File

@ -5,7 +5,7 @@ var crypto = require('crypto');
var bench = common.createBenchmark(main, { var bench = common.createBenchmark(main, {
writes: [500], writes: [500],
algo: [ 'sha256', 'md5' ], algo: ['sha1', 'sha256', 'sha512'],
type: ['asc', 'utf', 'buf'], type: ['asc', 'utf', 'buf'],
len: [2, 1024, 102400, 1024 * 1024], len: [2, 1024, 102400, 1024 * 1024],
api: ['legacy', 'stream'] api: ['legacy', 'stream']