4 ms·
Node (19.0.0) is quicker than bun (0.2.2) which is quicker than Deno (1.26.2) in my tests. (Edit: added Deno) mitata 'node sim.ts 10000000' 'bun sim.ts 10000
by moderation 4y ago
Node (19.0.0) is quicker than bun (0.2.2) which is quicker than Deno (1.26.2) in my tests. (Edit: added Deno)
mitata 'node sim.ts 10000000' 'bun sim.ts 10000000' 'deno run --allow-read sim_deno.ts 10000000'
cpu: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
runtime: shell (x86_64-unknown-linux-gnu)
benchmark time (avg) (min … max)
----------------------------------------------------------------------------------
node sim.ts 10000000 803.35 ms/iter (773.08 ms … 848.1 ms)
bun sim.ts 10000000 1.23 s/iter (1.19 s … 1.4 s)
deno run --allow-read sim_deno.ts 10000000 1.37 s/iter (1.27 s … 1.69 s)
summary
node sim.ts 10000000
1.53x faster than bun sim.ts 10000000
1.71x faster than deno run --allow-read sim_deno.ts 10000000