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.46 419,588 405 3.46 2% 1% 100% 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.5 PHP #2 5.02 162,656 449 5.02 1% 1% 100% 100%
1.5 PHP 5.03 160,604 788 3.06 1% 100% 0% 100%
1.6 C gcc 5.53 295,572 2579 5.51 0% 1% 1% 100%
2.0 Rust #2 7.00 223,688 669 6.99 0% 100% 2% 100%
2.0 C++ g++ 7.04 204,612 648 7.03 1% 1% 1% 100%
2.0 C++ g++ #2 7.06 195,276 695 7.04 0% 1% 1% 100%
4.1 C++ g++ #4 14.31 96,056 1759 14.31 0% 1% 0% 100%
5.8 Ada 2005 GNAT #5 20.00 174,264 3492 19.98 0% 1% 1% 100%
6.0 Java  #7 20.80 567,404 1284 20.79 0% 0% 1% 100%
6.1 Java  #8 20.97 567,656 1377 20.95 1% 0% 0% 100%
6.4 Java  #6 22.28 571,816 1410 22.27 2% 1% 1% 100%
6.6 C gcc #4 22.96 83,956 1525 22.95 0% 1% 1% 100%
6.7 Ada 2005 GNAT #6 23.07 118,296 3740 23.03 0% 1% 1% 100%
6.9 Scala #4 24.06 509,328 723 24.04 1% 2% 2% 100%
6.9 Java  #5 24.07 735,044 929 24.05 1% 1% 0% 100%
7.1 Scala #3 24.45 704,368 633 24.43 1% 0% 0% 100%
7.1 Java  #4 24.48 745,596 921 24.46 1% 1% 0% 100%
7.2 Scala #2 24.80 712,748 668 24.78 0% 1% 1% 100%
7.2 Python 3 25.11 249,088 478 24.98 1% 0% 1% 100%
7.3 Python 3 #5 25.17 249,796 424 25.16 1% 0% 1% 100%
7.4 Perl #2 25.60 139,096 527 25.57 0% 1% 1% 100%
7.6 Ruby #6 26.32 154,492 442 26.30 1% 0% 100% 100%
7.8 Scala #5 27.11 483,656 1704 27.10 1% 1% 1% 100%
8.4 C gcc #2 29.26 127,300 1099 29.24 0% 1% 1% 100%
9.0 C++ g++ #3 31.03 241,204 844 31.01 0% 0% 1% 100%
9.0 Lua #2 31.27 340,104 596 31.26 0% 1% 1% 100%
9.4 Perl #4 32.40 142,656 440 32.38 0% 1% 1% 100%
9.5 Java  #2 33.05 762,660 1534 33.02 1% 1% 0% 100%
9.8 Haskell GHC #2 33.89 312,532 1518 33.88 1% 0% 0% 100%
9.8 Scala 34.02 853,952 611 34.00 1% 1% 0% 100%
9.9 Ruby #2 34.29 383,028 417 34.26 1% 1% 100% 100%
10 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%
11 Racket 36.61 759,432 527 36.59 0% 1% 1% 100%
11 Ruby #7 37.49 186,164 507 37.45 1% 1% 100% 100%
13 Lisp SBCL #3 44.04 669,204 1948 43.96 0% 0% 1% 100%
13 Lua 45.03 436,192 437 45.00 0% 1% 1% 100%
14 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 Ruby JRuby #7 49.42 894,612 507 49.38 0% 1% 1% 100%
15 Ruby JRuby #6 50.81 741,768 442 50.78 0% 1% 1% 100%
15 Go #2 51.01 495,192 789 50.98 1% 100% 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%
25 C# Mono #2 84.93 455,160 594 84.80 1% 0% 0% 100%
25 C# Mono #6 85.34 437,176 638 85.26 1% 0% 0% 100%
25 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%
26 F# Mono #2 88.44 794,904 413 88.40 1% 0% 0% 100%
26 F# Mono #3 88.46 2,013,996 870 88.41 1% 1% 0% 100%
26 F# Mono #4 89.83 1,051,104 899 89.70 1% 0% 1% 100%
27 Go #7 92.37 363,020 652 92.32 1% 100% 0% 100%
27 Dart #2 92.39 263,996 648 92.35 0% 1% 1% 100%
27 Go #8 92.61 636,416 785 92.57 0% 1% 1% 100%
29 Ruby JRuby 100.47 1,960,544 308 100.41 0% 1% 1% 100%
36 Go 123.99 504,456 733 123.30 1% 26% 1% 100%
183 Smalltalk VW 10 min 360,536 584 10 min 1% 0% 0% 100%
Clojure #3 Failed
Clojure #4 Failed
Erlang HiPE Timed Out
Node.js #2 Failed
JavaScript V8 Bad Output
Lisp SBCL Failed
Lua #3 Failed
OCaml #4 Failed
OCaml #2 Failed
OCaml Failed
OCaml #3 Failed
Racket #2 Bad Output
Ruby JRuby #8 Failed