github-action-benchmark
github-action-benchmark copied to clipboard
Add PerformanceEntry benchmark tool support
First of all thank you for putting this tool together, it will be a huge help to start reporting on performance metric for a project I'm currently working on
This pull request adds support for the JavaScript Performance API that lets you as accurately as possible measure the time a certain operation takes by adding markers in a codebase The difference with tools like benchmarkjs is that it works across Node.js and web browsers and get be embedded in end to end testing suite (collecting SPA metrics as an example)
- Node.js performance API docs: https://nodejs.org/api/perf_hooks.html
- Browser performance API docs: https://developer.mozilla.org/docs/Web/API/Performance
Let me know your thoughts,
Also open to ideas regarding the tool naming as I believe we could find a better one than jsperformanceentry