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.14 195,288 669 3.34 19% 19% 56% 64%
1.0 PHP #4 2.22 107,036 832 5.10 47% 33% 100% 53%
1.1 C gcc 2.45 317,952 2579 5.87 53% 51% 48% 92%
1.2 Hack #4 2.61 202,280 832 6.04 76% 54% 38% 68%
1.5 PHP 3.13 167,548 788 3.02 27% 22% 29% 90%
1.6 JavaScript V8 #2 3.44 584,432 405 3.46 1% 1% 100% 1%
1.7 Hack 3.66 267,456 787 3.60 36% 78% 26% 25%
1.8 C++ g++ #2 3.89 210,944 695 6.53 100% 69% 1% 0%
2.1 C++ g++ #4 4.40 101,176 1759 13.10 72% 53% 90% 83%
2.4 PHP #3 5.14 153,240 459 5.13 0% 1% 1% 100%
2.4 PHP #2 5.14 153,240 449 5.14 0% 1% 100% 1%
2.6 Ada 2005 GNAT #5 5.52 156,084 3492 16.89 76% 67% 78% 87%
2.6 Hack #3 5.59 268,768 456 5.58 1% 43% 54% 5%
2.6 Hack #2 5.60 273,108 446 5.60 100% 1% 1% 1%
3.1 C++ g++ 6.56 224,576 648 6.55 0% 0% 100% 0%
3.5 C gcc #4 7.47 93,784 1525 22.33 67% 64% 99% 70%
3.5 Ada 2005 GNAT #6 7.48 112,616 3740 22.62 65% 73% 68% 97%
3.7 Scala #5 7.98 466,024 1704 27.87 85% 84% 92% 88%
3.8 Java  #5 8.24 761,724 929 24.70 68% 73% 77% 83%
4.0 Scala #3 8.57 661,456 633 24.36 82% 63% 76% 65%
4.0 Scala #4 8.60 646,308 723 24.32 84% 69% 74% 58%
4.1 Clojure #4 8.84 607,884 707 29.34 94% 81% 80% 78%
4.2 Scala #2 8.96 676,292 668 24.85 82% 78% 58% 61%
4.4 Ruby #8 9.35 108,284 529 27.11 71% 63% 91% 67%
4.4 OCaml #4 9.43 268,480 1050 1.39 83% 83% 83% 100%
4.5 Perl #2 9.70 142,492 527 27.16 76% 75% 77% 54%
4.7 Ruby #3 10.04 343,864 501 29.63 65% 82% 82% 68%
4.7 Erlang #6 10.16 441,036 1058 35.74 80% 93% 95% 85%
4.9 Erlang HiPE #6 10.42 383,644 1058 35.91 88% 82% 90% 85%
4.9 Python 3 10.58 266,312 478 23.44 49% 39% 68% 68%
5.0 Ruby #7 10.62 217,024 507 30.20 84% 64% 61% 77%
5.0 OCaml #3 10.65 516,976 1014 19.15 27% 28% 87% 39%
5.1 Haskell GHC #2 10.84 257,400 1518 40.78 96% 91% 93% 98%
5.1 OCaml 10.85 517,356 1502 19.57 29% 27% 29% 98%
6.0 Java  #2 12.75 781,676 1534 40.28 90% 71% 82% 74%
7.7 Ruby JRuby #7 16.58 787,976 507 49.58 69% 67% 81% 84%
7.8 C++ g++ #3 16.71 244,420 844 25.01 22% 100% 0% 29%
7.9 Go #2 16.97 474,400 789 49.05 68% 72% 76% 74%
8.8 OCaml #2 18.95 517,492 615 18.94 1% 0% 100% 0%
9.3 Java  #7 19.99 574,892 1284 20.33 17% 1% 84% 1%
9.4 Java  #8 20.15 574,780 1377 20.52 1% 1% 1% 100%
9.6 Java  #4 20.59 712,228 921 21.92 16% 10% 79% 2%
9.8 Lisp SBCL #3 20.98 653,188 1948 45.23 43% 91% 40% 43%
9.9 Ruby JRuby #3 21.10 1,993,204 501 56.64 64% 70% 68% 68%
10 Ruby #6 22.43 159,040 442 22.42 0% 1% 100% 0%
11 Ruby JRuby #2 22.68 1,961,188 417 65.18 58% 65% 79% 87%
11 Python 3 #5 24.03 315,036 424 24.02 1% 1% 0% 100%
12 Go #8 26.66 641,832 785 87.25 93% 76% 77% 83%
13 Ruby #2 26.93 360,372 417 26.92 16% 39% 38% 9%
13 Ruby #5 26.95 108,392 343 26.94 0% 1% 0% 100%
13 C# Mono #2 27.05 364,456 594 78.50 80% 84% 62% 66%
13 C# Mono #7 27.26 451,416 898 80.57 87% 68% 78% 64%
13 C gcc #2 28.58 127,672 1099 28.57 100% 1% 1% 0%
14 Scala 29.52 872,224 611 33.65 87% 6% 9% 12%
14 F# Mono #3 30.54 2,021,328 870 84.01 67% 65% 74% 71%
14 Lua #2 31.04 378,752 596 31.02 1% 1% 0% 100%
15 F# Mono #4 31.41 934,324 899 89.79 81% 63% 72% 72%
15 F# Mono 31.45 791,372 639 84.27 88% 61% 62% 61%
15 C# Mono #6 31.71 367,296 638 77.68 83% 59% 55% 49%
15 Dart #2 32.68 335,664 648 33.64 1% 99% 1% 3%
16 Perl #4 34.99 142,320 440 34.98 1% 0% 100% 0%
17 Ruby 35.92 328,188 308 35.90 1% 100% 0% 1%
17 Ruby JRuby #5 36.35 997,324 343 42.49 24% 20% 68% 10%
18 Racket 39.51 661,144 527 39.51 1% 1% 0% 100%
19 Go 41.62 581,808 733 126.50 74% 71% 82% 78%
20 Ruby JRuby #6 42.41 1,023,248 442 48.79 38% 7% 20% 52%
20 Lua 42.81 440,960 437 42.78 100% 0% 1% 0%
37 Ruby JRuby 78.98 2,182,572 308 89.18 9% 91% 7% 8%
37 F# Mono #2 79.13 678,444 413 79.12 0% 100% 1% 0%
38 C# Mono 82.06 545,648 624 82.05 0% 1% 1% 100%
40 Go #7 86.37 361,056 652 86.82 3% 3% 3% 92%
304 Smalltalk VW 10 min 375,164 584 10 min 1% 96% 1% 4%
Clojure #3 Failed
Erlang Timed Out
Erlang HiPE Timed Out
Java  #6 Failed
JavaScript V8 Bad Output
Lisp SBCL Bad Output
Lua #3 Failed
Racket #2 Bad Output
Ruby JRuby #8 Failed