5 ms·
I'm curious how both would compare to D.
by skocznymroczny 7y ago
I'm curious how both would compare to D.
- petre 7y agoCrystal is a bit faster at prime number crunching than D. I haven't done any optimizations, just a loop, math, push and hash ops. Its's on par with Go, which is also very fast. Compilation with the release option is slower.
- vips7L 7y agoI really like some of the features of D for userspace programs. Optional GC for hot paths, the ability to write raw ASM if needed, familiarity of java/cpp. Really wish it would take off more.
- petre 7y agoI like it as well. It would probably be my first choice of a general use statically typed compiled language.
- treeform 7y agoIf you are interested ins speed, here is a huge list of similar benchmarks: https://github.com/kostya/benchmarks https://github.com/kostya/benchmarks
- shaki-dora 7y agoOT: This is the first time I've seen "Energy" being measured in a benchmark. That strikes me as a really cool idea, both because it measures CPU usage over time, a figure that has always been of interest for such comparisons, as well as highlighting the ecological and economical aspects of computing.