MCPcopy
hub / github.com/opensheetmusicdisplay/opensheetmusicdisplay / skylineBench.mjs

File skylineBench.mjs

test/performance/skylineBench.mjs:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Benchmark: osmd.render() total time and skyline-phase time, geometric vs raster calculations.
2// Note: node-canvas getImageData is CPU-backed; in browsers (GPU canvases) the raster path pays an
3// additional GPU->CPU sync penalty, so real-world raster numbers are typically worse than here.
4// Usage: node test/performance/skylineBench.mjs [runsPerMode]

Callers

nothing calls this directly

Calls 8

medianFunction · 0.85
setLogLevelMethod · 0.80
MXLtoXMLstringMethod · 0.80
loadMethod · 0.80
pushMethod · 0.80
logMethod · 0.80
toStringMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected