Skip to content

Instantly share code, notes, and snippets.

@phun-ky
Last active April 26, 2018 12:03
Show Gist options
  • Save phun-ky/a8f1a7b7e3287e173a9ae69e2e699a4c to your computer and use it in GitHub Desktop.
Save phun-ky/a8f1a7b7e3287e173a9ae69e2e699a4c to your computer and use it in GitHub Desktop.

Benchmark npm vs yarn linux

Information

  • Node version: 8.10.0
  • npm: 5.8.0
  • yarn: 1.6.0

Specs

  • Machine: Lenovo Thinkpad w541
  • OS: Ubuntu 16.04 LTS
  • Memory: 16GB
  • Processor: Intel Core i7 @2.9ghz x8
  • Graphics: Quadro K2100M/PCIE/SSE2
  • Arch: 64 bit
  • Disk: SSD

Tested 20th of April 2018

cache node_modules lock-file npm install npm ci yarn
37,14s user 4,54s N/A 24,41s user 5,09s
24,66s user 3,56s 3,92s user 0,40s 19,87s user 4,84s
11,48s user 0,47s 5,64s user 1,57s 1,16s user 0,05s
11,46s user 0,56s N/A 21,31s user 3,32s
33,14s user 3,90s N/A 11,13s user 2,37s
12,89s user 0,66s 3,35s user 0,34s 7,56s user 2,22s
11,35s user 0,45s N/A 8,43s user 0,99s
11,34s user 0,50s 5,22s user 1,38s 1,16s user 0,06s

Benchmark npm vs yarn windows

Information

  • Node version: 8.11.1
  • npm: 5.8.0
  • yarn: 1.6.0

Specs

  • Machine: HP z440
  • OS: windows 10 enterprise ubuntu bash shell
  • Memory: 32GB
  • Processor: Intel Xeon CPU E5-1650 v3 @3.50GHz 3.50GHz
  • Graphics: Quadro K2200
  • Arch: 64 bit
  • Disk: SSD

Tested 26th of April 2018

cache node_modules lock-file npm install npm ci yarn
51,11s user 72,86s N/A
39,67s user 56,75s 5,06s user 3,56s *
13,66s user 4,05s
13,81s user 4,80s N/A
50,33s user 73,30s N/A
32,05s user 48,42s
13,81s user 4,83s N/A
14,84s user 3,69s
  • Reported time from npm npm ci-itself was WAY higher: 53.686s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment