# Ruby out performs Crystal significantly on this numerical algorithm

**URL:** <https://forum.crystal-lang.org/t/ruby-out-performs-crystal-significantly-on-this-numerical-algorithm/5538>\
**Category:** Help & Support\
**Created:** [April 5, 2023, 5:22pm UTC](https://forum.crystal-lang.org/t/ruby-out-performs-crystal-significantly-on-this-numerical-algorithm/5538 "2023-04-05T17:22:13Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![zw963](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/zw963/32/1623_2.png) [@zw963](https://forum.crystal-lang.org/u/zw963)\
**Post date:** [April 29, 2023, 6:05am UTC](https://forum.crystal-lang.org/t/ruby-out-performs-crystal-significantly-on-this-numerical-algorithm/5538/19 "2023-04-29T06:05:21Z")

</div>

Check following thread.

> [@BigInt is really really slow when run on linux, Or just Boehm GC issue?](https://forum.crystal-lang.org/t/bigint-is-really-really-slow-when-run-on-linux-or-just-boehm-gc-issue/4956/1):
>
> I am reading following blog post write by @asterite Following is content copy from there. require "big" def fib(n) if n \<= 1 BigInt.new(1) else fib(n - 1) + fib(n - 2) end end time = Time.local puts fib(BigInt.new(46)) puts Time.local - time Let’s run it: $ crystal fib.cr --release 2971215073 00:22:22.077676188 Then when run same code use Crystal 1.6-dev, it is much slower than the example above, in fact, i run several times, and break it early every time after 8 mins. …

---

_[View the full topic](https://forum.crystal-lang.org/t/ruby-out-performs-crystal-significantly-on-this-numerical-algorithm/5538)._
