The Computer Language
Benchmarks Game

thread-ring

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Haskell GHC 9.27 9,820 306 10.97 7% 55% 52% 7%
1.6 Go #6 14.67 2,368 420 14.67 0% 2% 100% 0%
1.9 F# .NET Core #3 18.05 78,240 329 18.94 20% 32% 50% 6%
2.8 Chapel 25.77 956,840 209 51.92 100% 2% 2% 100%
4.4 Smalltalk VW #2 41.10 55,952 566 41.06 1% 1% 1% 100%
4.5 Erlang #3 41.45 24,800 465 41.54 1% 100% 1% 1%
4.5 Erlang #2 41.58 25,024 273 41.62 1% 89% 12% 1%
4.5 Erlang 41.75 25,232 273 41.84 0% 1% 1% 100%
4.8 Erlang HiPE #3 44.08 41,424 465 44.10 6% 0% 95% 1%
4.8 Erlang HiPE #2 44.20 26,028 273 44.24 0% 1% 1% 100%
4.8 Erlang HiPE 44.31 26,052 273 44.39 1% 100% 0% 1%
6.3 Ada 2005 GNAT #6 58.79 19,932 1015 234.18 100% 100% 100% 100%
7.6 Go #5 70.39 2,372 405 151.42 56% 55% 54% 54%
8.3 Clojure #2 76.77 410,804 299 80.48 25% 28% 29% 25%
8.5 Clojure 78.60 405,700 348 82.64 31% 23% 22% 31%
13 Rust #2 123.93 91,896 940 5 min 60% 60% 60% 60%
15 C++ g++ #5 137.18 11,088 652 282.68 52% 51% 51% 52%
15 C++ g++ #4 137.73 11,052 572 283.55 51% 53% 53% 50%
16 C gcc #3 146.51 ? 916 ? 100% 2% 1% 0%
16 Racket 151.90 ? 262 ? 4% 1% 1% 97%
18 C++ g++ #2 171.18 7,376 588 224.18 14% 44% 44% 15%
19 C gcc 171.55 7,416 487 224.64 41% 17% 16% 41%
19 C gcc #4 174.53 9,532 761 229.76 16% 43% 43% 15%
19 C gcc #2 174.59 5,392 575 228.95 9% 51% 51% 9%
20 C++ g++ 183.75 7,032 636 263.57 32% 32% 32% 32%
20 OCaml #3 187.78 27,300 296 247.70 3% 58% 58% 3%
21 OCaml #2 192.24 12,396 350 252.98 54% 6% 6% 55%
23 Ada 2005 GNAT #3 216.85 20,192 727 279.65 30% 27% 27% 31%
24 Ada 2005 GNAT #4 222.86 19,836 960 287.34 23% 35% 35% 23%
24 Lisp SBCL 224.34 619,776 618 5 min 32% 30% 30% 33%
26 F# .NET Core #2 242.74 93,684 555 13 min 83% 83% 83% 83%
30 Lisp SBCL #2 277.41 644,288 571 6 min 35% 30% 30% 35%
30 Java  #7 280.07 37,780 473 6 min 31% 28% 28% 31%
31 Rust 284.31 95,956 473 6 min 23% 36% 36% 23%
31 Python 3 #2 285.68 13,124 288 6 min 37% 25% 25% 38%
31 Ada 2005 GNAT #2 285.86 21,992 560 6 min 34% 32% 32% 35%
31 Java #3 288.82 369,564 530 6 min 30% 29% 29% 31%
33 Ruby 5 min 21,228 331 6 min 27% 32% 33% 27%
40 Ruby JRuby 6 min 825,972 342 8 min 30% 31% 31% 30%
45 C# .NET Core 7 min 53,824 476 10 min 33% 36% 36% 34%
50 OCaml 7 min 26,644 282 10 min 31% 31% 31% 31%
52 Ada 2005 GNAT 8 min 19,884 602 13 min 40% 40% 40% 40%
58 Perl #3 8 min 723,872 489 11 min 32% 31% 31% 30%
110 Ruby #2 16 min 37,412 215 22 min 32% 32% 33% 32%
144 Perl 22 min 324,564 353 33 min 26% 26% 46% 46%
239 C# .NET Core #2 36 min 50,500 591 1h 36 min 66% 66% 66% 66%
Pascal Free Pascal Make Error
Ruby JRuby #2 Failed