Leibniz formula for in Python, JavaScript, and Ruby - Peterbe.com
Briefly

Officially, I'm one day behind, but here's how you can calculate the value of π using the Leibniz formula.
❯ hyperfine --warmup 10... Summary bun run ~/pi.js ran 1.62 ± 0.39 times faster than python3.12 ~/pi.py 1.75 ± 0.46 times faster than node ~/pi.js 7.35 ± 1.45 times faster than ruby ~/pi.rb
Read at Peterbe
[
add
]
[
|
|
]