pnpm / benchmarks-of-javascript-package-managers

Benchmarks of JavaScript Package Managers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Benchmark npm 7

jahed opened this issue · comments

npm 7 was released 10 days ago. Apparently they've made some performance improvements. Can the benchmarks be updated?

https://github.com/npm/cli/releases

Thanks

I tried but it currently fails to install the deps in our fixtures. So seems like it has some regressions. We'll have to wait for it to become more stable

While this is not a great solution, you can get it working by updating the npm arguments in https://github.com/pnpm/benchmarks-of-javascript-package-managers/blob/master/lib/commandsMap.js to the following:

npm: {
    scenario: 'npm',
    legend: 'npm',
    name: 'npm',
    args: [
      'install',
      '--ignore-scripts',
      '--cache',
      'cache',
      '--registry',
      'https://registry.npmjs.org/',
      '--legacy-peer-deps',
      '--no-audit'
    ]
  },

Note that I had to use --no-audit as the dependency versions in the fixtures are quite old and have some issues now.

I updated the benchmarks w/o updates to the command