({ n, bytes })
| 13 | let _cloneResult; |
| 14 | |
| 15 | function main({ n, bytes }) { |
| 16 | const buff = Buffer.allocUnsafe(bytes); |
| 17 | const blob = new Blob(buff); |
| 18 | bench.start(); |
| 19 | for (let i = 0; i < n; ++i) |
| 20 | _cloneResult = structuredClone(blob); |
| 21 | bench.end(n); |
| 22 | |
| 23 | // Avoid V8 deadcode (elimination) |
| 24 | assert.ok(_cloneResult); |
| 25 | } |
nothing calls this directly
no test coverage detected