The Computer Language
Benchmarks Game

regex-dna

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 Rust #2 1.93 219,284 699 4.83 79% 51% 51% 73%
1.2 PHP #4 2.23 106,284 832 5.09 62% 78% 49% 42%
1.3 C gcc 2.43 339,000 2579 5.68 46% 70% 51% 72%
1.3 TypeScript 2.60 472,172 433 2.61 1% 0% 100% 3%
1.3 Node.js #2 2.60 416,928 445 2.60 2% 1% 2% 100%
1.4 Hack #4 2.61 219,700 832 5.89 67% 51% 66% 47%
1.6 PHP 3.15 170,648 788 3.07 59% 18% 43% 47%
1.7 Go #9 3.28 336,736 1229 7.27 63% 53% 47% 61%
1.8 Hack 3.52 291,168 787 3.33 43% 73% 26% 20%
2.0 C++ g++ #2 3.89 242,200 695 6.50 0% 77% 1% 91%
2.2 Java  #7 4.26 667,416 1085 11.69 59% 69% 90% 59%
2.3 C++ g++ #4 4.43 102,664 1759 13.04 91% 64% 91% 49%
2.7 PHP #3 5.15 172,688 459 5.14 1% 1% 1% 100%
2.7 PHP #2 5.15 174,836 449 5.14 0% 1% 0% 100%
2.8 Hack #2 5.35 290,572 446 5.33 100% 1% 1% 2%
2.8 Hack #3 5.36 280,292 456 5.34 2% 0% 0% 100%
2.8 Ada 2005 GNAT #5 5.41 175,780 3492 16.81 70% 75% 70% 98%
3.3 C++ g++ 6.45 230,112 648 6.44 1% 100% 0% 1%
4.1 C gcc #4 7.82 93,828 1525 23.53 100% 68% 67% 67%
4.1 Ada 2005 GNAT #6 7.86 94,604 3740 23.74 69% 66% 97% 71%
4.1 Ruby #8 7.98 108,480 529 23.28 95% 69% 64% 64%
4.2 Java #5 8.15 741,388 929 24.31 68% 96% 68% 68%
4.2 Scala #5 8.17 487,396 1704 28.02 82% 87% 91% 85%
4.2 OCaml #4 8.18 ? 1050 ? 86% 100% 86% 84%
4.3 Scala #6 8.28 496,052 1726 28.49 89% 84% 90% 83%
4.4 OCaml #3 8.58 476,992 892 16.97 34% 34% 99% 33%
4.5 OCaml 8.63 474,200 1261 17.24 35% 34% 87% 46%
4.5 Clojure #4 8.77 600,836 707 28.58 96% 79% 77% 75%
4.6 Ruby #7 8.80 226,604 507 25.15 84% 75% 65% 64%
4.6 Ruby #3 8.85 358,836 501 26.06 69% 77% 65% 85%
4.8 Scala #2 9.27 669,468 668 25.48 74% 87% 58% 58%
4.9 Chapel 9.35 1,787,668 468 18.46 100% 15% 15% 69%
4.9 Java #8 9.37 590,288 921 23.65 68% 52% 52% 82%
4.9 Perl #2 9.47 142,584 527 26.69 78% 73% 58% 75%
5.1 Erlang HiPE #6 9.89 301,220 1058 34.48 93% 82% 95% 79%
5.3 Python 3 10.14 258,956 478 23.14 48% 77% 64% 41%
5.4 Erlang #6 10.32 275,988 1058 34.51 77% 76% 83% 99%
5.6 Haskell GHC #2 10.84 264,404 1518 41.01 94% 96% 97% 92%
6.4 Java #2 12.41 799,124 1534 39.43 82% 73% 76% 88%
8.5 C++ g++ #3 16.41 241,696 844 24.41 49% 100% 1% 0%
8.6 Go #2 16.65 617,200 789 48.54 76% 83% 68% 66%
8.8 OCaml #2 17.00 477,432 615 16.98 1% 0% 100% 1%
9.5 Ruby JRuby #7 18.38 988,748 507 55.57 71% 67% 95% 71%
10 Java #6 20.17 587,888 740 21.44 11% 4% 17% 76%
11 Java #4 20.59 713,292 921 21.98 4% 8% 94% 3%
11 Lisp SBCL #3 21.19 585,828 1948 44.52 89% 39% 42% 42%
12 C# .NET Core #8 22.52 407,468 806 86.03 95% 98% 95% 95%
12 Ruby JRuby #2 22.60 2,057,592 417 66.39 69% 87% 71% 70%
12 Ruby JRuby #3 22.65 2,057,624 501 63.71 75% 73% 70% 65%
12 Ruby #5 22.91 108,300 343 22.90 1% 100% 1% 1%
12 Ruby #6 22.93 157,068 442 22.92 1% 100% 0% 1%
12 Ruby #2 23.17 375,900 417 23.14 41% 15% 17% 29%
12 C# .NET Core #3 23.77 880,944 809 87.64 93% 96% 88% 92%
12 Python 3 #5 23.82 329,804 424 23.80 1% 0% 100% 1%
12 Clojure #3 23.84 861,352 710 45.57 55% 65% 30% 42%
13 C# .NET Core #7 25.96 880,328 898 86.98 82% 97% 77% 81%
14 F# .NET Core 27.83 1,586,948 639 93.94 79% 83% 87% 90%
14 Dart #2 27.89 353,224 648 29.83 48% 7% 7% 49%
15 Scala 28.27 874,784 611 31.79 14% 78% 6% 18%
15 C# .NET Core #2 28.67 1,014,508 594 88.20 65% 84% 71% 89%
15 C# .NET Core #6 29.38 850,652 638 88.64 76% 67% 92% 67%
16 Lua #2 30.17 250,332 596 30.15 100% 1% 1% 0%
16 C gcc #2 30.22 127,640 1099 30.20 1% 0% 1% 100%
16 F# .NET Core #4 30.47 1,647,512 899 94.10 76% 77% 66% 92%
16 Go 31.05 578,424 733 97.49 75% 77% 77% 85%
17 F# .NET Core #3 32.42 2,465,772 821 94.78 82% 70% 79% 63%
17 Ruby 32.48 347,616 308 32.46 1% 100% 1% 1%
19 Perl #4 35.73 143,300 440 35.72 1% 1% 0% 100%
20 Racket 38.65 729,724 527 38.64 1% 100% 1% 1%
22 Lua 42.26 681,716 437 42.23 0% 1% 1% 100%
24 Ruby JRuby #6 45.93 1,002,748 442 52.87 34% 16% 24% 42%
24 Ruby JRuby #5 46.29 850,904 343 53.07 9% 5% 97% 6%
33 Ruby JRuby 63.81 2,004,372 308 76.11 8% 10% 74% 30%
48 F# .NET Core #2 92.77 1,928,124 413 93.22 97% 1% 1% 3%
48 C# .NET Core 93.02 1,888,680 624 93.42 98% 1% 3% 0%
53 Swift #2 102.23 285,340 713 102.18 1% 67% 33% 0%
65 Swift #3 124.60 604,940 761 5 min 49% 91% 57% 49%
339 Smalltalk VW 10 min 377,180 584 10 min 100% 1% 1% 1%
Lua #3 Failed