The Computer Language
Benchmarks Game

regex-dna

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 PHP #4 2.23 106,284 832 5.09 62% 78% 49% 42%
1.1 C gcc 2.46 336,804 2579 5.81 74% 46% 70% 51%
1.1 Hack #4 2.51 232,320 832 6.06 54% 67% 44% 78%
1.2 Node.js #2 2.58 446,212 445 2.58 0% 2% 100% 1%
1.3 Rust #2 2.79 196,400 669 5.81 65% 36% 38% 72%
1.4 PHP 3.15 170,648 788 3.07 59% 18% 43% 47%
1.6 Hack 3.46 301,640 787 3.37 89% 30% 19% 29%
1.7 C++ g++ #2 3.90 245,132 695 6.50 100% 1% 67% 1%
2.0 C++ g++ #4 4.42 101,168 1759 13.08 64% 52% 94% 90%
2.3 PHP #3 5.15 172,688 459 5.14 1% 1% 1% 100%
2.3 PHP #2 5.15 174,836 449 5.14 0% 1% 0% 100%
2.4 Hack #3 5.34 294,824 456 5.33 0% 1% 1% 100%
2.4 Hack #2 5.34 290,640 446 5.33 1% 100% 1% 1%
2.4 Ada 2005 GNAT #5 5.41 175,780 3492 16.81 70% 75% 70% 98%
2.9 C++ g++ 6.46 231,844 648 6.45 0% 100% 1% 1%
3.5 C gcc #4 7.86 94,204 1525 23.54 66% 64% 71% 100%
3.5 Ada 2005 GNAT #6 7.86 94,604 3740 23.74 69% 66% 97% 71%
3.6 Scala #5 7.98 466,024 1704 27.87 85% 84% 92% 88%
3.7 Java  #5 8.23 753,008 929 24.56 71% 78% 81% 70%
3.8 Scala #3 8.57 661,456 633 24.36 82% 63% 76% 65%
3.9 Scala #4 8.60 646,308 723 24.32 84% 69% 74% 58%
3.9 Clojure #4 8.77 600,836 707 28.58 96% 79% 77% 75%
4.0 Scala #2 8.96 676,292 668 24.85 82% 78% 58% 61%
4.2 Ruby #8 9.35 108,284 529 27.11 71% 63% 91% 67%
4.3 Perl #2 9.47 142,584 527 26.69 78% 73% 58% 75%
4.4 Erlang HiPE #6 9.89 301,220 1058 34.48 93% 82% 95% 79%
4.5 Ruby #3 10.04 343,864 501 29.63 65% 82% 82% 68%
4.6 OCaml 10.26 599,024 1261 18.65 86% 28% 28% 42%
4.6 Erlang #6 10.32 275,988 1058 34.51 77% 76% 83% 99%
4.7 OCaml #4 10.54 265,940 1050 1.26 88% 99% 87% 87%
4.7 Python 3 10.58 266,312 478 23.44 49% 39% 68% 68%
4.8 Ruby #7 10.62 217,024 507 30.20 84% 64% 61% 77%
4.8 OCaml #3 10.67 599,004 892 19.19 28% 85% 29% 40%
4.9 Haskell GHC #2 10.84 264,404 1518 41.01 94% 96% 97% 92%
5.7 Java  #2 12.59 788,172 1534 40.14 81% 81% 74% 84%
7.4 C++ g++ #3 16.43 241,548 844 24.43 49% 6% 91% 10%
7.6 Go #2 16.85 660,712 789 48.83 99% 64% 63% 64%
8.1 Ruby JRuby #7 18.09 990,328 507 54.62 76% 82% 68% 77%
8.4 OCaml #2 18.82 599,116 615 18.80 100% 1% 1% 1%
9.3 Lisp SBCL #3 20.79 597,020 1948 44.68 41% 45% 41% 91%
9.4 Ruby JRuby #3 20.84 2,088,468 501 59.38 84% 67% 67% 69%
9.7 Ruby JRuby #2 21.51 2,168,736 417 61.67 62% 78% 75% 73%
10 Java  #6 22.21 633,292 740 23.25 5% 3% 96% 3%
10 Ruby #6 22.43 159,040 442 22.42 0% 1% 100% 0%
10 Java  #4 22.57 713,860 921 23.85 3% 99% 2% 3%
11 Python 3 #5 24.03 315,036 424 24.02 1% 1% 0% 100%
12 Go #8 26.23 611,356 785 86.64 78% 99% 77% 78%
12 C# Mono #7 26.48 472,060 898 82.46 81% 78% 75% 78%
12 F# Mono 26.90 781,120 639 85.04 74% 78% 89% 76%
12 Ruby #2 26.93 360,372 417 26.92 16% 39% 38% 9%
12 Ruby #5 26.95 108,392 343 26.94 0% 1% 0% 100%
12 C# Mono #2 27.78 545,032 594 80.66 78% 83% 64% 66%
13 C# Mono #6 28.35 538,264 638 81.24 71% 70% 80% 67%
13 Scala 29.52 872,224 611 33.65 87% 6% 9% 12%
14 C gcc #2 30.27 127,536 1099 30.26 0% 1% 1% 100%
14 F# Mono #3 30.86 1,973,520 821 84.60 59% 63% 61% 93%
14 Lua #2 31.04 378,752 596 31.02 1% 1% 0% 100%
14 F# Mono #4 31.32 963,564 899 85.42 66% 92% 60% 57%
15 Dart #2 32.60 358,236 648 34.59 6% 13% 85% 4%
16 Perl #4 35.73 143,300 440 35.72 1% 1% 0% 100%
16 Ruby 35.92 328,188 308 35.90 1% 100% 0% 1%
18 Racket 39.16 671,360 527 39.16 1% 1% 100% 0%
19 Lua 42.81 440,960 437 42.78 100% 0% 1% 0%
20 Go 43.71 535,096 733 135.72 71% 76% 72% 93%
20 Ruby JRuby #5 43.76 794,192 343 49.90 5% 12% 6% 94%
20 Ruby JRuby #6 44.15 943,220 442 50.79 30% 33% 7% 48%
27 Ruby JRuby 59.32 1,994,892 308 71.30 97% 9% 8% 9%
37 C# Mono 82.09 526,912 624 82.07 1% 100% 0% 0%
37 F# Mono #2 83.24 749,400 413 83.22 1% 100% 1% 1%
39 Go #7 85.83 356,028 652 86.64 91% 7% 3% 2%
294 Smalltalk VW 10 min 377,180 584 10 min 100% 1% 1% 1%
Clojure #3 Failed
Lisp SBCL Timed Out
Lua #3 Failed
Ruby JRuby #8 Failed