3 ms·
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 binaryt
by igouy 7y ago
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
- AlchemistCamp 7y agoRuby pulled ahead of Python in speed in version 1.9 and has stayed ahead (most of the time, in most tests) since.
- deleted 7y ago[deleted]
- igouy 7y ago> most of the time, in most tests That isn't something which can be checked, just stuff someone said.
- mnutt 7y agoI 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"