Sharkbench

Benchmarking programming languages and web frameworks

Ruby Computation Benchmark

About Ruby

Paradigm

Object-Oriented, Imperative

Execution

Interpreted

Typing

Dynamic

Null Safety

NO

Memory Management

Garbage Collection

Ruby is a dynamic, open-source programming language developed by Yukihiro Matsumoto with a focus on simplicity and productivity. It has an elegant syntax designed for programmer happiness and expressive code. Ruby is commonly used for building web applications through the Ruby on Rails framework, which follows the Model-View-Controller pattern.

Benchmarks

This benchmark tests how fast a programming language can perform mathematical computations without any I/O or memory allocation. We are using the Leibniz formula to approximate the value of PI.

OS: LinuxCPU: Intel Core Ultra 5 325Last Updated: 2026-10-05
Language
Time
Memory
Build Time
28.27 s
7.6 MB
0.98 s
30.60 s
6.7 MB
0.90 s
72.32 s
9.2 MB
0.94 s
67.88 s
7.5 MB
1.15 s
79.41 s
7.0 MB
0.93 s
73.17 s
15.2 MB
0.88 s

Popular languages

How does Ruby compare to other languages?
Language
Time
Memory
Build Time
1.00 s
852.0 KB
3.02 s
1.00 s
440.0 KB
3.26 s
1.16 s
5.6 MB
3.67 s
1.35 s
21.9 MB
15.21 s
1.37 s
1.4 MB
5.42 s
3.23 s
14.6 MB
0.89 s
28.27 s
7.6 MB
0.98 s
67.88 s
7.5 MB
1.15 s
99.40 s
4.0 MB
1.26 s

© 2026 Tien Nam Do