Skip to content

gabrielfern/Benchmarks

Repository files navigation

Benchmark programming language implementations

The algorithm consists of getting the nth prime number

./run to get the time of all (without bash)

for ./run 20000 (on my machine)

1.Rust (rustc) -               1.079 secs

2.C (GCC) -                    1.232 secs

3.Java (OpenJDK) -             1.320 secs

4.JavaScript (nodejs) -        2.029 secs

5.Dart (Dart VM) -             2.288 secs

6.Assembly (nasm) -            3.868 secs

7.Go (gc) -                    4.473 secs

8.Haskell (ghc) -             10.925 secs

9.Python (CPython) -          28.227 secs

10.Ruby (CRuby) -             28.296 secs

11.Bash (GNU bash) -              + 8 min

About

Benchmark programming language implementations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published