Re: Just in case
- Posted by petelomax Jan 15, 2021
- 818 views
Time in seconds | |
---|---|
Phix (first example) | 0.04 |
Phix (second example) | 1.2 |
crystal | 90 |
rust | 212 |
Careful, as posted my first example only runs to a mere 1,000.
It takes 6.5s to get to 100,000.
It needs 64-bit and takes 15.8s to get to 1,000,000.
It needs 64-bit and 3mins 6s (186s) to get to 10,000,000, which is the compare-able thingy [yes?].
By-the-by, a translation of the Crystal code [original rc, not the rust.lang page] to Phix took 17.5s to get to 100,000, vs my original's 6.5s, so I didn't pursue that any further.
Half or even one third the speed of Crystal, I can live with, faster than Rust, even slightly, I'm surprised. But there's really no like-for-like story worth telling here,
it is more just a bit of fun about a fancy algo smashing records. (The 1.2s sounds about right for all the way to 10^19 on a machine a bit slower than mine.)