niklas-heer/speed-comparison
View on GitHub ↗ ★ 752 Python
A repo which compares the speed of different programming languages.
14 mentions on Hacker News by 13 people: 0 stories, 14 comments · first 2023-06-12 · latest 2026-02-02
20082026
-
This https://github.com/niklas-heer/speed-comparison/blob/master/... and this https://github.com/niklas-heer/speed-comparison/blob/master/... from parent comment
comment by boroboro4 · 2026-02-02 · in Data Processing Benchmark Featuring Rust, Go, Swift, Zig, Julia etc. -
https://github.com/niklas-heer/speed-comparison/blob/9681e8e...
comment by neonsunset · 2025-12-20 · in Programming language speed comparison using Leibniz formula for π -
…see these flags in Nim compilation config. The only extra option used is "-march=native"[0]. [0] https://github.com/niklas-heer/speed-comparison/blob/9681e8e...
comment by archargelod · 2025-12-20 · in Programming language speed comparison using Leibniz formula for π -
…for the language. Compiler optimizations flags are fine." Agree with the rest of your comment. [0]: https://github.com/niklas-heer/speed-comparison#rules
comment by forgotpwd16 · 2025-12-20 · in Programming language speed comparison using Leibniz formula for π -
From https://github.com/niklas-heer/speed-comparison/blob/master/... // [I removed the error checking] def pi_accuracy(value_str): """Calculate accuracy of computed pi value. Returns the number of correct decimal places (higher is better).…
comment by gus_massa · 2025-12-20 · in Programming language speed comparison using Leibniz formula for π -
Reading https://github.com/niklas-heer/speed-comparison/blob/master/... , I think the only overflow checks could be in for i in 2...rounds+2 and I would hope/expect the compiler to be smart enough to know that it only has to check…
comment by Someone · 2025-12-19 · in Programming language speed comparison using Leibniz formula for π -
C# places quite low though (at ~1s). C# (SIMD) that you see towards the top is more complicated: https://github.com/niklas-heer/speed-comparison/blob/master/... . In your metric winner is Nim: https://github.com/niklas-heer/speed-comparison…
comment by forgotpwd16 · 2025-12-19 · in Programming language speed comparison using Leibniz formula for π -
…code and the 1.94-nightly version explicitly uses std::simd vectorization. Compare the source code: https://github.com/niklas-heer/speed-comparison/blob/master/... https://github.com/niklas-heer/speed-comparison/blob/master/...
comment by pjscott · 2025-12-19 · in Programming language speed comparison using Leibniz formula for π -
…of code metric. There is very little superfluous or that cannot be inferred by the compiler here: https://github.com/niklas-heer/speed-comparison/blob/master/...
comment by sph · 2025-12-19 · in Programming language speed comparison using Leibniz formula for π -
…algorithm, just one loop with an iterated expression inside it. You can check the source code at: https://github.com/niklas-heer/speed-comparison/tree/master/... It's true this is a microbenchmark and not super informative about "Big…
comment by ajross · 2025-12-19 · in Programming language speed comparison using Leibniz formula for π -
Constructively, I would suggest some areas for study: - relative speeds of programming languages ( https://github.com/niklas-heer/speed-comparison ) - database indexing ( https://stackoverflow.com/questions/1108/how-does-database-i... ) -…
comment by runako · 2025-08-11 · in Claude Code is all you need -
Another language comparison repo that's been going for longer with more languages https://github.com/niklas-heer/speed-comparison .
comment by tgmatt · 2024-12-05 · in Speeding up Ruby by rewriting C in Ruby -
…https://www.cncf.io/reports/the-state-of-webassembly-2023/ And the benchmark also mentioned there: https://github.com/niklas-heer/speed-comparison
comment by pestatije · 2023-10-27 · in Linux Foundation Report Finds Serious Issues with WebAssembly -
> has near native performance what do you mean by this? https://github.com/niklas-heer/speed-comparison https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
comment by datadeft · 2023-06-12 · in Douglas Crockford on JavaScript