Function
measureSync
(n, digest, signature, publicKey, keys)
Source from the content-addressed store, hash-verified
| 54 | }); |
| 55 | |
| 56 | function measureSync(n, digest, signature, publicKey, keys) { |
| 57 | bench.start(); |
| 58 | for (let i = 0; i < n; ++i) { |
| 59 | crypto.verify( |
| 60 | digest, |
| 61 | data, |
| 62 | publicKey || keys[i], |
| 63 | signature); |
| 64 | } |
| 65 | bench.end(n); |
| 66 | } |
| 67 | |
| 68 | function measureAsync(n, digest, signature, publicKey, keys) { |
| 69 | let remaining = n; |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…