/mobile Handheld Friendly website
Ubuntu : Intel® Q6600® one core |
Each chart bar shows how many times slower, one ↓ regex-dna program was, compared to the fastest program.
These are not the only programs that could be written. These are not the only compilers and interpreters. These are not the only programming languages.
Column × shows how many times more each program used compared to the benchmark program that used least.
| sort | sort | sort | ||||
| × | Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|---|
| 1.0 | JavaScript V8 #2 | 3.78 | 3.80 | 310,368 | 373 | 2% 1% 1% 100% |
| 1.4 | C gcc | 5.46 | 5.48 | 286,748 | 2579 | 0% 0% 1% 100% |
| 1.6 | C++ g++ | 5.98 | 6.00 | 185,560 | 648 | 0% 1% 1% 100% |
| 1.6 | C++ g++ #2 | 6.01 | 6.02 | 173,736 | 695 | 0% 0% 1% 100% |
| 5.0 | Ada 2005 GNAT #5 | 18.95 | 18.97 | 99,484 | 3492 | 0% 0% 0% 100% |
| 5.2 | C gcc #4 | 19.54 | 19.55 | 81,748 | 1525 | 0% 0% 0% 100% |
| 5.2 | Ada 2005 GNAT #6 | 19.62 | 19.65 | 113,932 | 3740 | 0% 1% 0% 100% |
| 5.6 | Python 3 #5 | 21.13 | 21.14 | 194,612 | 424 | 0% 0% 0% 100% |
| 5.7 | C++ g++ #4 | 21.46 | 21.48 | 90,944 | 1759 | 0% 0% 0% 100% |
| 6.0 | Java 7 #7 | 22.63 | 22.66 | 557,080 | 1284 | 0% 0% 0% 100% |
| 6.4 | Java 7 #6 | 24.23 | 24.27 | 543,032 | 1410 | 1% 0% 0% 100% |
| 6.8 | C gcc #2 | 25.65 | 25.66 | 124,688 | 1099 | 0% 0% 0% 100% |
| 6.8 | Java 7 #4 | 25.75 | 25.79 | 735,744 | 921 | 1% 0% 0% 100% |
| 6.9 | Python 3 | 26.01 | 26.14 | 244,284 | 478 | 0% 0% 0% 100% |
| 6.9 | Java 7 #5 | 26.27 | 26.32 | 719,324 | 929 | 1% 0% 0% 100% |
| 7.1 | PHP #3 | 26.76 | 26.78 | 207,000 | 459 | 0% 0% 0% 100% |
| 7.3 | ATS | 27.61 | 27.62 | 165,256 | 2482 | 0% 0% 0% 100% |
| 7.3 | ATS #2 | 27.62 | 27.64 | 226,880 | 3474 | 0% 0% 1% 100% |
| 7.5 | Haskell GHC #2 | 28.46 | 28.48 | 266,484 | 1518 | 0% 0% 0% 100% |
| 8.1 | Perl #2 | 30.88 | 30.92 | 140,068 | 527 | 0% 0% 0% 100% |
| 8.2 | C++ g++ #3 | 31.17 | 31.18 | 174,432 | 844 | 0% 1% 1% 100% |
| 9.1 | PHP #2 | 34.60 | 34.62 | 223,892 | 449 | 0% 0% 0% 100% |
| 9.3 | Scala #2 | 35.25 | 35.28 | 776,552 | 668 | 0% 0% 0% 100% |
| 9.5 | Java 7 #2 | 36.06 | 36.11 | 717,508 | 1534 | 1% 0% 0% 100% |
| 9.7 | Scala | 36.58 | 36.65 | 810,892 | 611 | 0% 0% 0% 100% |
| 11 | Racket | 40.76 | 40.79 | 598,772 | 527 | 0% 0% 0% 100% |
| 11 | Ruby 2.0 #2 | 41.46 | 41.48 | 312,596 | 417 | 0% 0% 0% 100% |
| 11 | Ruby 2.0 #3 | 41.78 | 41.82 | 262,992 | 501 | 1% 0% 0% 100% |
| 12 | Lua | 43.90 | 43.94 | 494,992 | 437 | 0% 0% 0% 100% |
| 12 | Ruby JRuby #3 | 44.05 | 44.09 | 1,966,524 | 501 | 0% 0% 0% 100% |
| 12 | Ruby JRuby #2 | 44.41 | 44.45 | 1,966,748 | 417 | 0% 0% 0% 100% |
| 12 | Lisp SBCL #3 | 45.30 | 45.33 | 944,736 | 1948 | 0% 0% 0% 100% |
| 16 | Ruby 2.0 | 59.48 | 59.50 | 263,460 | 308 | 0% 0% 0% 100% |
| 17 | Clojure #3 | 63.38 | 63.41 | 548,084 | 710 | 0% 0% 0% 100% |
| 18 | F# Mono | 66.26 | 66.42 | 2,752,712 | 639 | 0% 0% 0% 100% |
| 18 | C# Mono #2 | 69.66 | 69.72 | 837,780 | 594 | 0% 0% 0% 100% |
| 19 | C# Mono #6 | 70.42 | 70.50 | 890,952 | 638 | 0% 0% 0% 100% |
| 19 | Go #8 | 72.62 | 72.65 | 1,072,644 | 785 | 1% 0% 0% 100% |
| 19 | Go #7 | 72.85 | 72.89 | 724,312 | 652 | 0% 0% 0% 100% |
| 19 | Perl #4 | 73.34 | 73.37 | 188,720 | 440 | 0% 0% 0% 100% |
| 21 | Ruby JRuby | 78.17 | 78.21 | 1,912,668 | 308 | 0% 0% 0% 100% |
| 30 | Erlang HiPE #6 | 114.18 | 114.22 | 145,476 | 1058 | 0% 0% 0% 100% |
| 44 | Go | 167.77 | 167.84 | 620,988 | 733 | 0% 0% 0% 100% |
| 85 | Smalltalk VisualWorks | 5 min | 5 min | 376,248 | 584 | 0% 0% 0% 100% |
| C CINT #2 | Failed | 1099 | ||||
| C CINT | Bad Output | 1101 | ||||
| C# Mono | Failed | 624 | ||||
| Dart | Timed Out | 1h 00 min | 632 | |||
| Erlang HiPE | Timed Out | 10 min | 622 | |||
| F# Mono #3 | Failed | 870 | ||||
| F# Mono #2 | Failed | 413 | ||||
| JavaScript V8 | Bad Output | 365 | ||||
| Lisp SBCL | Failed | 591 | ||||
| OCaml #4 | Failed | 1050 | ||||
| OCaml #2 | Failed | 615 | ||||
| OCaml | Failed | 1502 | ||||
| OCaml #3 | Failed | 1014 | ||||
| Racket #2 | Bad Output | 536 | ||||
| Ruby 2.0 #4 | Bad Output | 523 | ||||
| Ruby JRuby #4 | Bad Output | 523 | ||||
| Scala #3 | Failed | 633 | ||||
| Scala #4 | Failed | 723 | ||||
| "wrong" (different) algorithm / less comparable programs | ||||||
| 1.2 | Perl #7 | 4.39 | 4.41 | 139,804 | 567 | |
| 1.2 | Perl #6 | 4.60 | 4.61 | 189,608 | 477 | |
| 1.9 | Erlang HiPE #7 | 7.38 | 7.39 | 145,840 | 1198 | |
| 2.2 | Java 7 #3 | 8.14 | 8.16 | 255,516 | 2084 | |
| 5.4 | Pascal Free Pascal | 20.54 | 20.55 | 124,544 | 1199 | |
| missing benchmark programs | ||||||
| Fortran Intel | No program | |||||
| Pascal Free Pascal | No program | |||||
diff program output for this 100KB input file (generated with the fasta program N = 10000) with this output file to check your program is correct before contributing.
We are trying to show the performance of various programming language implementations - so we ask that contributed programs not only give the correct result, but also use the same algorithm to calculate that result.
We use FASTA files generated by the fasta benchmark as input for this benchmark. Note: the file may include both lowercase and uppercase codes.
Each program should