Ruby vs. Crystal Performance
ptimofeev.com
Ruby vs. Crystal Performance
1–10 of 151 posts
Re: Ruby vs. Crystal Performance
#2Re: Ruby vs. Crystal Performance
#3Re: Ruby vs. Crystal Performance
#4Crystal is quite interesting, but a fib benchmark?
Re: Ruby vs. Crystal Performance
#5Re: Ruby vs. Crystal Performance
#6Re: Ruby vs. Crystal Performance
#7The recursively written Fibonacci benchmark is terrible for comparing a interpreted language to a compiled language. When compiling with optimizations in C, for example, the compiler significantly transforms the program. [1] It's possible Crystal does too. [1] https://godbolt.org/z/vaESBG
Re: Ruby vs. Crystal Performance
#8Re: Ruby vs. Crystal Performance
#9What’s the elevator pitch on Crystal? Seems like typed Ruby with performance considerations.
Also it has really powerful type inference, which allows you to write really Ruby-like code while maintaining your static typing. The downside of that is that it makes the compiler kind of slow.
Re: Ruby vs. Crystal Performance
#10Crystal is quite interesting, but a fib benchmark?
I mean it's kinda trivial but it does have the added benefit of also showing off that it's statically typed. For a more real world example check out the website of Kemal (Crystals Sinatra equivalent) at https://kemalcr.com/ , where it benchmarks at ~46k requests per second in a HTTP benchmark vs 4k in Ruby.