Hacker GitHub

← All repos

drujensen/fib

View on GitHub ↗ ★ 906 Ruby

Performance Benchmark of top Github languages

11 mentions on Hacker News by 11 people: 1 story, 10 comments · first 2017-11-25 · latest 2023-09-23

Mentions per year 11 mentions · busiest year 2018 (7)
20082026
  1. https://github.com/drujensen/fib sbcl on my mac m1 gets 21s Gerbil gets 16s Minor Gerbil version as an example. (export main) (def (fib n) (if (fx<= n 1) n (+ (fib (fx- n 1)) (fib (fx- n 2))))) (def (main) (display (fib 47)) (newline))…
    comment by matrix12 · 2023-09-23 · in Chez Scheme: Lisp with native code speed
  2. …done this. Elixir is 3x slower than C and 2x slower than Java for this single thread example. https://github.com/drujensen/fib Apparently this upsets people for me to point this out. However, I did not say that Elixir was slow in general…
  3. …although they tend to be out of date and/or piecemeal. I think they're still useful. For example: https://github.com/drujensen/fib https://gist.github.com/sdwfrost/7c660322c6c33961297a826df4c... https://github.com/kostya/benchmarks My…
  4. …latest release. I don't know how reliable it is but in my experience Nim can often be very fast: https://github.com/drujensen/fib
    comment by nimmer · 2018-10-01 · in Nim 0.19
  5. …reasoning that it's not been accepted. It's also using Elixir script instead of precompiled Elixir. https://github.com/drujensen/fib/pull/33
  6. Hardware used is listed at the top of the readme. https://github.com/drujensen/fib/blob/master/README.md
  7. The owner of this repo has no idea it’s trending on HN. This issue gave me a good laugh: https://github.com/drujensen/fib/issues/51
  8. The benchmark includes a C++ constexpr version, at https://github.com/drujensen/fib/blob/master/fib-constexpr.c... , with timing numbers under the section "Optimized code that breaks the benchmark" and the comment "all benchmarks will have…
  9. …playing to its strengths, it wasn't making use of tail call optimization. I made a PR to fix that: https://github.com/drujensen/fib/pull/33
  10. ▲ 165
    Recursive fibonacci benchmark using top languages on GitHub
    story by anonfunction · 2018-09-28 · 164 comments
  11. …would also be a cool thing to give an example of across programming languages. Sort of like how https://github.com/drujensen/fib does it.