The Computer Language
Benchmarks Game

regex-dna

program source code, command-line and measurements

× source code secs KB gz cpu cpu load
1.0 JavaScript V8 #2 3.55 432,072 405 3.54 1% 0% 1% 100%
1.1 Rust #2 4.06 182,668 669 4.05 1% 100% 0% 100%
1.4 PHP #4 4.85 105,416 832 4.83 1% 100% 1% 100%
1.4 PHP #3 5.02 164,668 459 5.02 1% 0% 100% 100%
1.4 PHP #2 5.02 162,656 449 5.02 1% 1% 100% 100%
1.4 PHP 5.03 160,604 788 3.06 1% 100% 0% 100%
1.5 C gcc 5.46 288,880 2579 5.45 2% 100% 0% 100%
2.0 C++ g++ #2 6.99 215,316 695 6.98 0% 1% 1% 100%
2.0 C++ g++ 7.01 204,700 648 7.00 0% 1% 1% 100%
4.1 C++ g++ #4 14.65 95,656 1759 14.64 1% 1% 100% 100%
5.6 Ada 2005 GNAT #5 19.76 125,856 3492 19.74 1% 0% 100% 100%
5.9 Java  #7 20.80 567,404 1284 20.79 0% 0% 1% 100%
5.9 Java  #8 20.97 567,656 1377 20.95 1% 0% 0% 100%
6.3 Java  #6 22.28 571,816 1410 22.27 2% 1% 1% 100%
6.8 C gcc #4 24.05 83,436 1525 24.04 0% 0% 0% 100%
6.8 Scala #4 24.06 509,328 723 24.04 1% 2% 2% 100%
6.8 Java  #5 24.07 735,044 929 24.05 1% 1% 0% 100%
6.8 Ada 2005 GNAT #6 24.22 118,116 3740 24.18 1% 1% 100% 100%
6.9 Scala #3 24.45 704,368 633 24.43 1% 0% 0% 100%
6.9 Java  #4 24.48 745,596 921 24.46 1% 1% 0% 100%
7.0 Scala #2 24.80 712,748 668 24.78 0% 1% 1% 100%
7.1 Python 3 25.11 249,088 478 24.98 1% 0% 1% 100%
7.1 Python 3 #5 25.17 249,796 424 25.16 1% 0% 1% 100%
7.2 Perl #2 25.60 139,096 527 25.57 0% 1% 1% 100%
7.4 Ruby #6 26.32 154,492 442 26.30 1% 0% 100% 100%
7.6 Scala #5 27.11 483,656 1704 27.10 1% 1% 1% 100%
8.6 C gcc #2 30.70 127,544 1099 30.69 0% 1% 1% 100%
8.8 Lua #2 31.27 340,104 596 31.26 0% 1% 1% 100%
9.0 C++ g++ #3 31.83 229,760 844 31.81 0% 1% 1% 100%
9.1 Perl #4 32.40 142,656 440 32.38 0% 1% 1% 100%
9.3 Java  #2 33.05 762,660 1534 33.02 1% 1% 0% 100%
9.5 Haskell GHC #2 33.89 312,532 1518 33.88 1% 0% 0% 100%
9.6 Scala 34.02 853,952 611 34.00 1% 1% 0% 100%
9.7 Ruby #2 34.29 383,028 417 34.26 1% 1% 100% 100%
9.9 Ruby #5 35.11 108,304 343 35.09 1% 1% 100% 100%
10 Ruby #8 35.34 106,056 529 35.30 1% 0% 100% 100%
10 Erlang HiPE #6 35.94 177,080 1058 35.92 0% 1% 1% 100%
10 Ruby #3 36.02 433,040 501 35.97 1% 1% 100% 100%
10 Racket 37.17 743,052 527 37.15 1% 0% 0% 100%
11 Ruby #7 37.49 186,164 507 37.45 1% 1% 100% 100%
12 Lisp SBCL #3 44.11 645,368 1948 44.08 0% 0% 1% 100%
13 Lua 45.03 436,192 437 45.00 0% 1% 1% 100%
13 Ruby 47.11 385,344 308 47.08 0% 1% 100% 100%
14 Ruby JRuby #5 48.75 798,716 343 48.72 0% 1% 0% 100%
14 Go #2 48.80 632,692 789 48.78 1% 1% 1% 100%
14 Ruby JRuby #7 49.42 894,612 507 49.38 0% 1% 1% 100%
14 Ruby JRuby #6 50.81 741,768 442 50.78 0% 1% 1% 100%
17 Ruby JRuby #2 59.36 2,019,808 417 59.31 1% 4% 1% 100%
17 Ruby JRuby #3 60.45 2,018,296 501 60.41 0% 0% 1% 100%
24 Dart #2 83.79 259,264 648 83.75 0% 0% 1% 100%
24 C# Mono #2 84.93 455,160 594 84.80 1% 0% 0% 100%
24 C# Mono #6 85.34 437,176 638 85.26 1% 0% 0% 100%
24 C# Mono #7 86.00 428,632 898 85.90 1% 0% 0% 100%
25 F# Mono 87.78 782,864 639 87.69 1% 0% 0% 100%
25 C# Mono 87.97 456,012 624 87.93 2% 1% 1% 100%
25 Go #7 88.02 445,960 652 87.98 1% 1% 0% 100%
25 Go #8 88.28 508,252 785 88.24 1% 2% 1% 100%
25 F# Mono #2 88.44 794,904 413 88.40 1% 0% 0% 100%
25 F# Mono #3 88.46 2,013,996 870 88.41 1% 1% 0% 100%
25 F# Mono #4 89.83 1,051,104 899 89.70 1% 0% 1% 100%
28 Ruby JRuby 100.47 1,960,544 308 100.41 0% 1% 1% 100%
34 Go 121.00 705,536 733 120.95 0% 1% 1% 100%
179 Smalltalk VW 10 min 360,536 584 10 min 1% 0% 0% 100%
Clojure #3 Failed
Clojure #4 Failed
Erlang HiPE Timed Out
JavaScript V8 Bad Output
Lisp SBCL Bad Output
Lua #3 Failed
OCaml #4 Failed
OCaml #2 Failed
OCaml Failed
OCaml #3 Failed
Racket #2 Bad Output
Ruby JRuby #8 Failed