({ method, n })
| 9 | }); |
| 10 | |
| 11 | function main({ method, n }) { |
| 12 | switch (method) { |
| 13 | case 'timeOrigin': |
| 14 | benchTimeOrigin(n); |
| 15 | break; |
| 16 | case 'toJSON': |
| 17 | benchToJSON(n); |
| 18 | break; |
| 19 | default: |
| 20 | throw new Error(`Unsupported method ${method}`); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | function benchTimeOrigin(n) { |
| 25 | const arr = []; |
nothing calls this directly
no test coverage detected
searching dependent graphs…