This is a simple benchmark to compare runtime overhead when running multiple, sequential, non-JS tasks from package.json.
https://x.com/justjs14/status/1791518402776863117
In order to run you will need to clone this gist to a directory that has no package.json
or deno.json
in the ancestor directory tree
cd /tmp && git clone https://gist.github.com/ece1daa5317adab8256a118a12717512.git
you need to have hyperfine
, npm
, deno
, bun
and node
22 installed as this test was created to see the effect of the new node run
cli command.
in order to run the test
hyperfine "deno task foo" "bun run foo" "npm run foo" "node --run=foo" 2>/dev/null
if you want to run on your setup feel free to post your results and your environment/machine details in the comments below.
Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Linux 6.5.0-28-generic #29~22.04.1-Ubuntu
v22.2.0
1.43.3 (release, x86_64-unknown-linux-gnu)
1.1.8
10.2.4