The Computer Language
Benchmarks Game

regex-dna

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 Rust #2 3.18 203,436 669 3.17 1% 2% 1% 100%
1.1 JavaScript V8 #2 3.45 642,500 405 3.44 0% 1% 2% 100%
1.6 C gcc 5.09 323,572 2579 5.08 0% 1% 0% 100%
1.7 C++ g++ 5.25 208,928 648 5.24 1% 1% 0% 100%
1.7 C++ g++ #2 5.26 211,232 695 5.25 0% 1% 0% 100%
1.7 Hack #3 5.33 286,192 456 5.31 0% 1% 1% 100%
1.7 Hack #2 5.33 290,204 446 5.32 0% 2% 0% 100%
1.8 Hack 5.64 288,064 787 3.33 1% 1% 1% 100%
1.8 Hack #4 5.73 218,288 832 5.71 1% 1% 1% 100%
4.2 C++ g++ #4 13.33 99,052 1759 13.32 1% 0% 0% 100%
5.2 Ada 2005 GNAT #5 16.40 175,464 3492 16.38 1% 0% 0% 100%
6.0 OCaml #2 18.95 517,500 615 18.93 1% 0% 0% 100%
6.0 OCaml #3 19.17 517,080 1014 19.16 1% 0% 1% 100%
6.2 OCaml 19.57 516,348 1502 19.56 1% 0% 1% 100%
6.7 Java  #7 21.40 575,372 1284 21.39 1% 0% 1% 100%
6.7 OCaml #4 21.41 ? 1050 ? 0% 1% 1% 100%
6.8 Java #8 21.56 574,704 1377 21.55 1% 1% 0% 100%
7.1 C gcc #4 22.60 88,136 1525 22.59 1% 0% 0% 100%
7.1 Ada 2005 GNAT #6 22.66 113,220 3740 22.63 1% 1% 0% 100%
7.3 Java #5 23.35 750,952 929 23.34 1% 1% 1% 100%
7.5 Java #4 23.69 716,328 921 23.67 0% 1% 1% 100%
7.5 Scala #4 23.76 653,172 723 23.74 1% 1% 6% 100%
7.5 Scala #3 23.90 667,628 633 23.89 0% 1% 1% 100%
7.6 Python 3 #5 24.05 317,412 424 24.04 1% 0% 1% 100%
7.6 Python 3 24.16 270,028 478 24.04 0% 1% 0% 100%
7.7 Ruby #6 24.33 145,900 442 24.32 0% 1% 0% 100%
7.8 Scala #2 24.70 691,324 668 24.68 1% 0% 1% 100%
8.2 Scala #5 26.14 472,912 1704 26.12 1% 1% 1% 100%
8.3 Perl #2 26.47 142,256 527 26.46 0% 1% 0% 100%
8.6 PHP #3 27.36 217,384 459 27.35 1% 1% 0% 100%
8.6 PHP 27.45 ? 788 ? 0% 1% 1% 100%
8.6 Clojure #4 27.47 683,964 707 27.44 1% 1% 0% 100%
8.7 PHP #4 27.52 153,008 832 27.50 0% 0% 1% 100%
8.8 Ruby #8 27.95 115,976 529 27.94 0% 1% 1% 100%
8.8 Ruby #5 28.02 106,264 343 28.01 0% 1% 0% 100%
8.8 Ruby #2 28.12 447,528 417 28.11 0% 1% 0% 100%
9.2 C gcc #2 29.21 127,604 1099 29.20 1% 1% 0% 100%
9.7 Ruby #3 30.77 381,780 501 30.74 0% 0% 1% 100%
9.8 Lua #2 31.05 379,828 596 31.04 1% 1% 0% 100%
9.9 Ruby #7 31.32 217,420 507 31.29 0% 0% 1% 100%
10 Scala 32.03 876,188 611 32.01 1% 0% 1% 100%
10 Java #2 33.29 715,032 1534 33.27 1% 1% 0% 100%
11 Erlang HiPE #6 33.44 251,032 1058 33.42 1% 0% 0% 100%
11 Dart #2 33.50 338,744 648 33.48 0% 1% 0% 100%
11 Haskell GHC #2 34.02 321,120 1518 34.00 0% 0% 1% 100%
11 Perl #4 34.38 142,024 440 34.37 1% 0% 0% 100%
12 PHP #2 37.66 229,104 449 37.65 1% 1% 1% 100%
13 Ruby JRuby #5 40.48 981,456 343 40.45 1% 0% 0% 100%
13 Ruby 40.52 375,868 308 40.51 0% 1% 0% 100%
13 Racket 40.91 721,968 527 40.89 0% 0% 1% 100%
13 Ruby JRuby #6 42.75 976,416 442 42.71 0% 0% 1% 100%
13 Clojure #3 42.79 805,400 710 42.76 0% 1% 1% 100%
13 Lua 42.82 441,680 437 42.79 0% 1% 0% 100%
14 Lisp SBCL #3 44.43 578,924 1948 44.41 0% 2% 1% 100%
15 Go #2 48.48 619,976 789 48.46 0% 1% 0% 100%
23 Ruby JRuby 72.63 2,048,076 308 72.57 1% 0% 0% 100%
24 C# Mono LLVM #6 77.36 379,924 638 77.27 0% 0% 1% 100%
25 C# Mono LLVM #2 77.94 404,544 594 77.86 0% 1% 1% 100%
25 C# Mono LLVM #7 78.18 451,556 898 78.06 0% 1% 0% 100%
25 F# Mono LLVM #2 79.27 672,008 413 79.23 1% 1% 0% 100%
26 C# Mono LLVM 82.11 453,124 624 82.07 1% 0% 1% 100%
26 F# Mono LLVM 82.89 817,884 639 82.82 0% 1% 0% 100%
26 F# Mono LLVM #4 83.34 955,868 899 83.29 0% 1% 0% 100%
26 F# Mono LLVM #3 83.76 2,016,188 870 83.69 0% 1% 1% 100%
27 Go #7 87.35 434,740 652 87.32 0% 1% 0% 100%
28 Go #8 87.40 575,612 785 87.37 0% 1% 1% 100%
39 Go 122.86 739,580 733 122.06 0% 0% 0% 100%
82 Ruby JRuby #7 261.78 781,332 507 261.66 0% 1% 1% 100%
123 Ruby JRuby #2 6 min 2,150,896 417 6 min 0% 1% 1% 100%
129 Ruby JRuby #3 6 min 2,152,332 501 6 min 1% 0% 0% 100%
204 Smalltalk VW 10 min 376,760 584 10 min 0% 1% 1% 100%
C++ g++ #3 Make Error
Erlang HiPE Timed Out
Java #6 Failed
JavaScript V8 Bad Output
Lisp SBCL Timed Out
Lua #3 Failed
Racket #2 Bad Output
Ruby JRuby #8 Failed