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
20082026
-
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 -
…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…
comment by blunte · 2021-07-17 · in Elixir protocols vs. Clojure multimethods -
…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…
comment by maow83jejj · 2019-04-24 · in Nim – Natively compiled language with hot code-reloading at runtime [video] -
…reasoning that it's not been accepted. It's also using Elixir script instead of precompiled Elixir. https://github.com/drujensen/fib/pull/33
comment by brightball · 2018-09-28 · in Recursive fibonacci benchmark using top languages on GitHub -
Hardware used is listed at the top of the readme. https://github.com/drujensen/fib/blob/master/README.md
comment by drujensen · 2018-09-28 · in Recursive fibonacci benchmark using top languages on GitHub -
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
comment by rbjorklin · 2018-09-28 · in Recursive fibonacci benchmark using top languages on GitHub -
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…
comment by eesmith · 2018-09-28 · in Recursive fibonacci benchmark using top languages on GitHub -
…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
comment by obahareth · 2018-09-28 · in Recursive fibonacci benchmark using top languages on GitHub -
▲ 165
Recursive fibonacci benchmark using top languages on GitHubstory by anonfunction · 2018-09-28 · 164 comments
-
…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.
comment by git-pull · 2017-11-25 · in Terrain rendering in fewer than 20 lines of code