4 ms·
Wow bun is fast! Would be interesting to see how NumPy or CuPy compare.
by __mharrison__ 4y ago
Wow bun is fast! Would be interesting to see how NumPy or CuPy compare.
- bhaney 4y ago> Wow bun is fast! Relative to python? I ran the benchmark in the post with both node.js and bun, and running it with bun consistently took ~60% more time. That was with bun v0.1.10 though. I tried with bun v0.2.1 but it just crashed.
- moderation 4y agoNode (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