The Computer Language
Benchmarks Game

regex-dna

program source code, command-line and measurements

× source code secs KB gz cpu cpu load
1.0 Rust #2 2.17 201,148 669 3.09 16% 14% 16% 100%
1.2 C gcc 2.67 290,792 2579 6.34 96% 76% 84% 67%
1.8 C++ g++ #2 4.02 176,492 695 5.57 2% 63% 75% 1%
2.3 C++ g++ #4 5.06 94,632 1759 15.28 87% 51% 75% 90%
2.5 C++ g++ 5.51 182,988 648 5.50 2% 1% 100% 2%
3.0 Ada 2005 GNAT #5 6.55 168,004 3492 19.52 71% 67% 73% 87%
3.4 Ada 2005 GNAT #6 7.42 118,164 3740 22.45 70% 72% 65% 97%
3.4 C gcc #4 7.50 88,076 1525 22.51 70% 68% 100% 63%
3.8 Scala #5 8.25 451,912 1704 28.07 92% 84% 83% 83%
4.0 Java  #5 8.80 729,244 929 25.79 77% 80% 72% 66%
4.1 Clojure #4 8.82 642,768 707 28.21 77% 98% 73% 73%
4.2 Scala #4 9.03 614,992 723 24.77 77% 79% 62% 59%
4.2 Scala #3 9.13 667,360 633 25.38 71% 62% 87% 59%
4.4 Scala #2 9.64 684,748 668 26.11 80% 65% 59% 68%
4.6 PHP #4 10.00 152,084 832 29.02 64% 67% 65% 96%
4.8 Haskell GHC #2 10.39 243,972 1518 39.42 97% 94% 93% 96%
4.9 Perl #2 10.63 142,432 527 27.62 77% 61% 80% 44%
5.0 PHP 10.94 222,360 788 12.94 55% 54% 55% 97%
5.1 Python 3 11.15 252,032 478 24.90 48% 40% 47% 89%
5.2 Erlang HiPE #6 11.35 250,640 1058 37.30 86% 88% 78% 79%
5.6 Ruby #3 12.28 348,464 501 36.13 65% 78% 70% 82%
5.8 Java  #2 12.59 725,064 1534 40.00 72% 75% 97% 75%
5.9 Ruby #8 12.83 115,624 529 36.34 92% 60% 64% 69%
6.3 Ruby #7 13.73 183,768 507 37.72 62% 62% 95% 58%
7.9 Go #2 17.23 532,312 789 49.81 90% 64% 64% 72%
8.0 Ruby JRuby #7 17.44 889,692 507 51.59 69% 71% 82% 76%
9.0 C++ g++ #3 19.67 180,580 844 31.70 67% 0% 1% 94%
9.1 Java  #8 19.68 567,328 1377 20.08 5% 4% 7% 87%
9.2 Java  #7 20.05 567,140 1284 20.46 13% 1% 88% 1%
9.8 Lisp SBCL #3 21.35 641,580 1948 44.56 90% 41% 43% 36%
10 Java  #4 22.66 735,240 921 24.37 6% 10% 89% 4%
11 Ruby JRuby #2 24.23 2,054,012 417 62.61 64% 68% 53% 76%
11 Ruby JRuby #3 24.38 1,970,696 501 63.01 52% 53% 89% 66%
12 Clojure #3 25.07 837,680 710 47.02 57% 38% 32% 62%
12 Python 3 #5 25.20 249,824 424 25.19 1% 100% 0% 1%
12 Go #8 26.83 651,792 785 87.83 81% 84% 84% 79%
13 PHP #3 28.49 217,104 459 28.48 0% 0% 1% 100%
13 Ruby #6 28.64 144,172 442 28.63 0% 0% 100% 1%
14 C gcc #2 29.64 127,752 1099 29.62 100% 1% 0% 0%
14 C# Mono #2 30.15 436,508 594 85.26 61% 60% 64% 99%
14 C# Mono #7 30.50 428,632 898 87.55 62% 86% 63% 77%
15 Scala 32.42 914,460 611 36.80 12% 10% 63% 30%
15 F# Mono 33.18 771,596 639 88.69 93% 59% 60% 58%
15 F# Mono #4 33.23 979,256 899 91.56 73% 65% 71% 68%
15 F# Mono #3 33.41 2,003,856 870 89.81 59% 75% 66% 70%
16 Perl #4 34.57 141,784 440 34.55 1% 1% 1% 100%
16 C# Mono #6 35.32 440,772 638 85.63 75% 48% 70% 51%
16 Ruby #2 35.34 431,248 417 35.33 8% 36% 45% 13%
17 Ruby #5 36.36 152,548 343 36.34 1% 0% 0% 100%
18 PHP #2 39.27 215,568 449 39.26 0% 0% 1% 100%
19 Racket 40.54 719,920 527 40.56 58% 0% 29% 15%
19 Go 41.83 605,736 733 129.49 75% 78% 77% 80%
21 Ruby JRuby #6 44.93 955,792 442 50.64 34% 6% 22% 52%
21 Ruby JRuby #5 45.09 755,464 343 50.51 5% 7% 6% 96%
24 Ruby 51.12 418,408 308 51.10 0% 0% 100% 1%
38 Dart #2 82.67 258,312 648 83.91 2% 40% 61% 1%
40 Go #7 86.89 406,392 652 87.59 93% 4% 3% 2%
40 C# Mono 87.93 465,540 624 87.90 100% 1% 1% 0%
41 F# Mono #2 88.49 654,284 413 88.47 1% 0% 0% 100%
46 Ruby JRuby 99.36 2,054,228 308 110.58 8% 77% 23% 5%
Erlang HiPE Timed Out
Java  #6 Failed
Lisp SBCL Bad Output
OCaml #4 Failed
OCaml #2 Failed
OCaml Failed
OCaml #3 Failed
Racket #2 Bad Output
Ruby JRuby #8 Failed