| 90 | afterAll(() => { |
| 91 | // Format time value with appropriate units |
| 92 | const formatTime = time => { |
| 93 | if (typeof time !== "number") return String(time); |
| 94 | if (time < 0.001) return `${(time * 1_000_000).toFixed(2)} ns`; |
| 95 | if (time < 1) return `${(time * 1000).toFixed(2)} µs`; |
| 96 | if (time < 1000) return `${time.toFixed(2)} ms`; |
| 97 | return `${(time / 1000).toFixed(2)} s`; |
| 98 | }; |
| 99 | |
| 100 | // Group benchmarks by category |
| 101 | const categories = { |
no outgoing calls
no test coverage detected
searching dependent graphs…