Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nx is slower than turbo (windows machine) July 16 #7

Open
bryanltobing opened this issue Jul 16, 2022 · 2 comments
Open

nx is slower than turbo (windows machine) July 16 #7

bryanltobing opened this issue Jul 16, 2022 · 2 comments

Comments

@bryanltobing
Copy link

bryanltobing commented Jul 16, 2022

Not sure I read this correctly but this is my results by running npm run benchmark

I ran this twice and got similar results

The command ran in 13375ms
------------------------
results
------------------------
average lage time is: 13584.7
average turbo time is: 4748.2
average lerna (powered by nx) time is: 5246.8
average nx time is: 4893.4
nx is 2.776127028242122x faster than lage
nx is 0.9703273797359709x faster than turbo
nx is 1.0722197245269138x faster than lerna (powered by nx)

npx envinfo

System:
  OS: Windows 10 10.0.22000
  CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
  Memory: 4.01 GB / 13.86 GB
Binaries:
  Node: 16.13.2 - C:\Program Files\nodejs\node.EXE
  Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
  npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
Managers:
  Cargo: 1.61.0 - ~\.cargo\bin\cargo.EXE
Utilities:
  Git: 2.37.0. - /mingw64/bin/git
IDEs:
  VSCode: 1.69.1 - C:\Users\bryan\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
Languages:
  Bash: 4.4.23 - C:\Program Files\Git\usr\bin\bash.EXE
  Perl: 5.34.0 - C:\Program Files\Git\usr\bin\perl.EXE
  Rust: 1.61.0 - /c/Users/bryan/.cargo/bin/rustc
Browsers:
  Edge: Spartan (44.22000.120.0), Chromium (103.0.1264.62)
  Internet Explorer: 11.0.22000.120
Monorepos:
  Yarn Workspaces: 1.22.19
  Lerna: 5.1.0
@AgentEnder
Copy link
Collaborator

Hey @bryantobing12!

Your results definitely show that, I'm not sure what the reason would be for you. I just reran the benchmark on my windows PC. Lerna / Lage both had some issues with my setup, but here were the numbers for turbo and Nx:

average turbo time is: 10724.6
average nx time is: 3110.3
nx is 3.4480918239398126x faster than turbo

envinfo

System:
    OS: Windows 10 10.0.22000
    CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
    Memory: 14.87 GB / 31.92 GB
  Binaries:
    Node: 16.0.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.19.0 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.10.0 - C:\Program Files\nodejs\npm.CMD
  Managers:
    Cargo: 1.46.0 - ~\.cargo\bin\cargo.EXE
    pip2: 9.0.3 - C:\Python27\Scripts\pip2.EXE
  Utilities:
    CMake: 3.13.4
    Git: 2.36.1.
  Virtualization:
    Docker: 19.03.8 - C:\Program Files\Docker\Docker\resources\bin\docker.EXE
  IDEs:
    VSCode: 1.62.0 - C:\Users\craig\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
    Visual Studio: 15.9.28307.344 (Visual Studio Enterprise 2017), 16.8.30711.63 (Visual Studio Community 2019)
  Languages:
    Bash: 4.4.23 - C:\Program Files\Git\usr\bin\bash.EXE
    Go: 1.15.3 - C:\Go\bin\go.EXE
    Perl: 5.34.0 - C:\Program Files\Git\usr\bin\perl.EXE
    Rust: 1.46.0
  Databases:
    SQLite: 3.22.0 - C:\Program Files (x86)\Android\android-sdk\platform-tools\sqlite3.EXE
  Browsers:
    Chrome: 103.0.5060.114
    Edge: Spartan (44.22000.120.0), Chromium (103.0.1264.44)
    Internet Explorer: 11.0.22000.120
  Monorepos:
    Yarn Workspaces: 1.19.0
    Lerna: 5.1.0

@lucascompython
Copy link

lucascompython commented Jun 13, 2023

Running the benchmark I get similar results saying that NX is slower than Turbo and Lage. This is on Arch Linux btw, on the 13/06/2023.

The command ran in 672ms
------------------------
results
------------------------
average lage time is: 672.4
average turbo time is: 431.1
average nx time is: 713.4
nx is 0.9425287356321839x faster than lage
nx is 0.6042893187552566x faster than turbo

This shows that Turbo is 1.654 times faster than NX and 1.559 times faster than Lage.

envinfo

  System:
    OS: Linux 6.3 undefined
    CPU: (32) x64 AMD Ryzen 9 7950X 16-Core Processor
    Memory: 17.92 GB / 30.49 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 20.3.0 - /usr/bin/node
    npm: 8.19.2 - /usr/bin/npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants