Skip to content
bench/lang

Ruby

ruby 3.4.5 · ruby/yjit 3.4.5

#17
Overall rank
28.48×
Score
16/17
Problems covered
0
Did not finish

Best result per problem

ProblemRankCodeTimePeak mem
binarytrees#16 of 191.rb3.37s116.0MB
coro-prime-sieve#12 of 191.rb1.64s64.3MB
edigits#6 of 191.rb69ms15.8MB
fannkuch-redux#18 of 191.rb111.41s13.0MB
fasta#15 of 196.rb1.51s22.9MB
http-server#12 of 192.rb162ms23.8MB
json-serde#15 of 191.rb1.48s153.4MB
knucleotide#18 of 181.rb17.28s52.4MB
lru#13 of 191.rb448ms12.9MB
mandelbrot#17 of 191.rb18.11s16.1MB
merkletrees#17 of 191.rb10.39s111.6MB
nbody#17 of 192.rb9.10s13.0MB
nsieve#18 of 191.rb19.38s482.6MB
pidigits#18 of 191.rb4.72s94.2MB
secp256k1#15 of 191.rb3.40s13.6MB
spectral-norm#17 of 194.rb129.12s15.5MB

Head to head

Ruby is faster on 0 of 16 shared problems

ProblemRubyC++Faster by
binarytrees3.37s649msC++ 5.19×
coro-prime-sieve1.64s53msC++ 30.72×
edigits69ms24msC++ 2.87×
fannkuch-redux111.41s1.76sC++ 63.32×
fasta1.51s242msC++ 6.24×
http-server162ms27msC++ 5.93×
json-serde1.48s327msC++ 4.53×
knucleotide17.28s275msC++ 62.75×
lru448ms96msC++ 4.65×
mandelbrot18.11s758msC++ 23.89×
merkletrees10.39s300msC++ 34.58×
nbody9.10s118msC++ 77.43×
nsieve19.38s276msC++ 70.14×
pidigits4.72s180msC++ 26.28×
secp256k13.40s430msC++ 7.91×
spectral-norm129.12s1.32sC++ 97.75×

Over time

Overall score after each run on Apple M5 laptop. Lower is faster.

Ruby overall score per run
Ruby overall score per run
RunRuby
Oct 19, 202614.61×
Oct 20, 202628.48×
Oct 20, 202628.48×
Recent runs, newest first
RunVersionRankScoreChange
Oct 20, 2026ruby 3.4.5 · ruby/yjit 3.4.5#1728.48×no change
Oct 20, 2026ruby 3.4.5 · ruby/yjit 3.4.5#1728.48×94.9% slower
Oct 19, 2026ruby 3.4.5 · ruby/yjit 3.4.5unranked14.61×–