The Computer Language
25.03 Benchmarks Game

regex-redux sorted-by "cpu secs"

Always look at the source code.

(Lumpers and Splitters.)

Some of these programs are single-thread and some are multi-thread: compare "secs" and "cpu secs". Some of these programs are un-optimised and some are heavily optimised: sort-by "gz" source code size.

Some of these programs are "naked ffi" and some put that in a library. Some of these programs are high-level and some are hand-written vector instructions.

Always look at the source code.

  * possible hand-written vector instructions or "unsafe" or naked ffi
 
× source secs mem gz cpu secs
1.0 Rust #6 1.21 159,846 994 1.46
1.1 Rust #5 1.35 209,863 777 1.57
1.1 Rust 1.35 159,793 811 1.60
1.1 Rust #3 1.38 210,379 726 1.63
1.1 Rust #4 1.38 206,811 771 1.63
1.1 Rust #2 1.38 159,937 707 1.64
1.4 * Rust #7 0.78 157,442 2464 2.00
1.4 C gcc #5 0.81 157,463 1403 2.04
1.6 C++g++ #6 1.14 285,639 2856 2.26
1.6 * Haskell GHC #3 1.10 357,376 2219 2.33
1.7 * C# naot #2 1.36 320,512 1881 2.54
1.8 Lua 2.59 360,264 488 2.58
1.8 * Python 3 #2 1.41 191,300 1411 2.63
2.1 Intel Fortran 0.98 189,305 2229 3.07
2.2 * Julia #5 1.91 519,877 766 3.18
2.2 C gcc #2 3.22 106,713 1121 3.21
2.3 * Julia #4 2.00 522,019 772 3.28
2.3 C gcc #4 0.97 157,417 1237 3.29
2.3 C gcc #3 1.73 107,401 1273 3.31
2.3 * OCaml #3 2.20 469,848 653 3.35
2.5 * Julia #3 2.19 671,166 630 3.58
2.5 PHP 1.88 203,751 822 3.68
2.7 * Java naot #4 1.38 554,586 2441 3.96
2.8 Chapel #3 3.17 391,320 503 4.07
3.1 Chapel #2 3.60 391,303 498 4.50
3.4 F# #2 4.81 879,477 437 5.01
3.5 F# #6 1.81 787,112 622 5.07
3.6 Julia 5.19 714,248 414 5.26
3.7 Node.js #3 4.35 840,503 675 5.36
3.7 Go #5 3.23 297,800 817 5.42
3.8 Free Pascal 5.56 106,508 1313 5.54
3.9 Node.js #4 5.47 1,036,935 471 5.60
4.6 F# #7 5.59 686,174 610 6.62
7.3 C# naot 10.69 582,550 641 10.65
7.4 C# naot #5 3.25 596,599 679 10.70
9.6 * OCaml #2 14.01 947,642 644 14.01
10 Dart aot #4 14.55 404,128 513 14.75
11 Dart aot #5 9.56 484,794 710 15.31
11 Ada 2012 GNAT #5 5.73 162,357 3647 16.07
11 Python 3 8.96 459,624 515 16.43
12 Dart aot #3 10.05 509,993 1061 17.54
12 Dart aot #2 17.05 423,469 667 17.93
12 C++ g++ #3 12.37 222,614 859 17.94
14 Java naot 11.36 280,367 875 20.93
15 Java naot #6 7.66 392,942 746 21.92
15 Java naot #3 7.63 383,447 935 22.01
15 Perl 22.37 212,926 471 22.35
16 Ruby #2 23.42 221,233 444 23.39
16 Racket 24.07 1,382,437 548 23.99
17 Ruby #3 12.42 217,313 730 24.43
17 Racket #2 13.95 1,646,199 736 25.33
20 Perl #2 17.14 212,640 717 29.56
20 Lisp SBCL #4 13.84 1,089,716 1977 29.65
21 Ruby #9 30.77 221,237 340 30.72
21 Perl #3 10.40 529,801 857 30.87
23 C# naot #4 9.81 743,510 854 33.00
24 Go #4 14.49 349,008 832 35.00
27 Swift #2 39.33 710,697 678 39.31
28 Swift 23.92 922,243 721 40.20
29 Erlang #6 21.26 4,641,796 1055 41.75
29 Swift #4 18.21 1,102,254 751 41.84
42 Go #3 25.15 336,585 836 60.64
42 Go 25.79 301,662 749 61.53
Ada 2012 GNAT #6 Bad Output
C++ g++ Empty
C++ g++ #2 Empty
C++ g++ #5 Empty
C++ g++ #4 Empty
F# Bad Output
F# #4 Bad Output
Java naot #2 Empty
Perl #5 Bad Output
Perl #4 Bad Output
Pharo Smalltalk Empty