({ n, v })
| 8 | }); |
| 9 | |
| 10 | function main({ n, v }) { |
| 11 | const method = require(v).getCiphers; |
| 12 | let i = 0; |
| 13 | // First call to getCiphers will dominate the results |
| 14 | if (n > 1) { |
| 15 | for (; i < n; i++) |
| 16 | method(); |
| 17 | } |
| 18 | bench.start(); |
| 19 | for (i = 0; i < n; i++) method(); |
| 20 | bench.end(n); |
| 21 | } |