github-action-benchmark icon indicating copy to clipboard operation
github-action-benchmark copied to clipboard

Add PerformanceEntry benchmark tool support

Open germain-gg opened this issue 4 years ago • 0 comments

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

germain-gg avatar Jun 08 '21 16:06 germain-gg