Skip to content

cstickel/node-js-source-maps-performance-test

Repository files navigation

NodeJS Source Maps Performance Test

This is a minimal example to reproduce the issue --enable-source-maps is unnecessarily slow with large source files in a close to real world scenario.

Prerequisites

  • Node Version v16.13.2 (should also work with any other version that has --enable-source-maps)
  • Yarn

Steps to reproduce

  • Run yarn install
  • Run yarn build
  • Run yarn start-bundle
  • In a new terminal run yarn artillery

Instead of yarn start-bundle there are also yarn start-without-source-maps, yarn start-unbundled and yarn start-bundle-with-source-map-support. Just run artillery against the different versions to see the differences in performance.

Artillery is set to do 20 req/sec for 1 minute. This should show the effect, however for really fast machines the arrivalRate of the load phase in artillery.yaml could be slightly increased.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published