Hacker GitHub

← All repos

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

Mentions per year 14 mentions · busiest year 2025 (10)
20082026
  1. This https://github.com/niklas-heer/speed-comparison/blob/master/... and this https://github.com/niklas-heer/speed-comparison/blob/master/... from parent comment
  2. https://github.com/niklas-heer/speed-comparison/blob/9681e8e...
  3. …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...
  4. …for the language. Compiler optimizations flags are fine." Agree with the rest of your comment. [0]: https://github.com/niklas-heer/speed-comparison#rules
  5. 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).…
  6. 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…
  7. 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…
  8. …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/...
  9. …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/...
  10. …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…
  11. 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
  12. 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
  13. …https://www.cncf.io/reports/the-state-of-webassembly-2023/ And the benchmark also mentioned there: https://github.com/niklas-heer/speed-comparison
  14. > 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