3 ms·
It's close but you do pay a performance cost for garbage collection (with Go, Java, and Crystal all being garbage collected). There are some benchmarks at the f
by suby 4y ago
It's close but you do pay a performance cost for garbage collection (with Go, Java, and Crystal all being garbage collected). There are some benchmarks at the following link, but note that many of the examples are hyper-optimized so you should look at the implementations to make sure the results aren't misleading. As an example though if you don't want to click, the nbody benchmark clocks the slowest C++ program at 387ms compared to Crystal at 580ms
https://programming-language-benchmarks.vercel.app/crystal-vs-cpp https://programming-language-benchmarks.vercel.app/crystal-v...
- deleted 4y ago[deleted]
- vegai_ 4y agoThat's an incredible achievement for Crystal given how high-level that language is. But you're right technically of course.