(s)
| 6 | const suite = new Benchmark.Suite(); |
| 7 | |
| 8 | function createHashWithSHA512(s) { |
| 9 | const sum = crypto.createHash('sha512'); |
| 10 | sum.update(s); |
| 11 | return sum.digest('hex'); |
| 12 | } |
| 13 | |
| 14 | console.log("utils.sha512({foo: 'bar', bar: 'foo', v: [1, 2, 3]})", utils.sha512({ foo: 'bar', bar: 'foo', v: [ 1, 2, 3 ] })); |
| 15 | console.log("utils.sha512(JSON.stringify({foo: 'bar', bar: 'foo', v: [1, 2, 3]}))", |
no outgoing calls
no test coverage detected
searching dependent graphs…