Re:Ask HN: A New Decade. Any Predictions? (2010)
by mnutt on Friday January 03, 2020 @10:59AM
(#21946996)
I don’t think one can say that python is faster than ruby: https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
I think the perception is there because of python’s scientific and ML libraries that have a lot of c bindings, perhaps?
Both are drastically faster than they were a decade ago, so 2010-era python or ruby are still the high-water mark.
Re:Ask HN: A New Decade. Any Predictions? (2010)
by igouy on Friday January 03, 2020 @01:49PM
(#21949002)
afaict until the 25 Dec 2019 ruby 2.7.0 release you probably could "say that python is faster than ruby".
fwiw
ruby 2.6.3p62
ruby 2.7.0p0
binarytrees-5 220.557 elapsed secs
binarytrees-5 124.421
binarytrees-2 178.751
binarytrees-2 149.458
binarytrees-3 176.672
binarytrees-3 150.645
binarytrees-4 136.930
binarytrees-4 113.516
binarytrees-1 176.208
binarytrees-1 149.078
fannkuchredux-1 1702.734
fannkuchredux-1 1738.016
fannkuchredux-2 2129.404
fannkuchredux-2 1153.396
fasta-3 132.449
fasta-3 81.565
fasta-6 105.649
fasta-6 54.305
fasta-2 236.321
fasta-2 180.647
fasta-5 181.954
fasta-5 146.962
fasta-4 178.753
fasta-4 144.130
knucleotide-7 702.380
knucleotide-7 361.174
knucleotide-2 412.034
knucleotide-2 365.819
knucleotide-1 678.888
knucleotide-1 378.368
knucleotide-3 426.748
knucleotide-3 385.934
mandelbrot-4 886.246
mandelbrot-4 1202.783
mandelbrot-2 1770.692
mandelbrot-2 1329.560
mandelbrot-3 1689.111
mandelbrot-3 2090.329
mandelbrot-5 1789.859
mandelbrot-5 2119.157
nbody-2 423.428
nbody-2 376.758
pidigits-1 60.476
pidigits-1 30.232
pidigits-5 6.446
pidigits-5, 4.790
pidigits-2 18.670
pidigits-2 11.841
regexredux-3 17.774
regexredux-3 9.431
regexredux-9 71.050
regexredux-9 40.018
regexredux-2 55.729
regexredux-2 33.070
revcomp-2 66.741
revcomp-2 32.203
revcomp-5 44.957
revcomp-5 21.445
revcomp-3 89.536
revcomp-3 39.507
revcomp-4 107.196
revcomp-4 43.994
spectralnorm-5 1059.201
spectralnorm-5 587.204
spectralnorm-1 318.088
spectralnorm-1 291.167
spectralnorm-4 271.367
spectralnorm-4 209.650
Re:Ask HN: A New Decade. Any Predictions? (2010)
by AlchemistCamp on Friday January 03, 2020 @11:22PM
(#21952859)
Ruby pulled ahead of Python in speed in version 1.9 and has stayed ahead (most of the time, in most tests) since.
Re:Ask HN: A New Decade. Any Predictions? (2010)
by igouy on Wednesday January 08, 2020 @12:30PM
(#21993626)
> most of the time, in most tests
That isn't something which can be checked, just stuff someone said.
Re:Ask HN: A New Decade. Any Predictions? (2010)
by mnutt on Wednesday January 08, 2020 @06:04PM
(#21996734)
I wasn't trying to assert that ruby is faster, just trying to correct the notion that python is an inherently faster language than ruby.
If I look at a composite benchmark like debian's and don't see one leading by an order of magnitude, I file that away as "probably about the same speed, depends on your use case"
I mean, that’s not entirely wrong — Besides JS, Python is arguably the most dominant language across all domains. Python is also faster than Ruby, though, and 3.x added static-like features to the language. It doesn’t seem like there’s much appetite for languages any slower than what we have now.