/mobile Handheld Friendly website

÷

 1 : Are the ATS programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest ATS program used compared to the fastest C++ g++ program.


These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.

 2 : Are the ATS programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest ATS program used compared to the fastest C++ g++ program.

 ATS used what fraction? used how many times more? 
Benchmark Time Memory Code
 fasta-redux±1/2
 reverse-complement±1/2±
 pidigits±1/2±
 binary-trees±±
 mandelbrot±±
 fasta±1/2
 spectral-norm±1/2
 k-nucleotide±±
 n-body1/2±
 fannkuch-redux±±
 regex-dna±
 ATS used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±±

± read the measurements and then read the program source code.

 3 : Are the ATS programs faster? Measurements.

These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.

For each named benchmark, measurements of the fastest ATS program are shown for comparison against measurements of the fastest C++ g++ program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fasta-redux 
ATS1.961.962882593  0% 1% 1% 100%
C++ g++2.162.176201474  0% 0% 1% 100%
 reverse-complement 
ATS1.071.08122,5961895  0% 1% 0% 100%
C++ g++1.061.07245,3882275  0% 1% 0% 100%
 pidigits 
ATS2.732.73860942  0% 1% 0% 100%
C++ g++2.682.681,452682  0% 0% 1% 100%
 binary-trees 
ATS17.7317.75197,2562143  0% 0% 0% 100%
C++ g++15.8015.82148,440892  1% 0% 0% 100%
 mandelbrot 
ATS24.6524.6630,1482148  0% 0% 0% 100%
C++ g++19.5819.6032,072726  0% 0% 0% 100%
 fasta 
ATS5.205.202882104  0% 1% 0% 100%
C++ g++4.104.116201105  0% 0% 0% 100%
 spectral-norm 
ATS10.6010.606082507  1% 0% 0% 100%
C++ g++7.927.939241044  0% 0% 0% 100%
 k-nucleotide 
ATS32.1532.17124,1323238  0% 0% 0% 100%
C++ g++23.6923.71137,4481252  1% 0% 0% 100%
 n-body 
ATS20.6520.653201920  0% 1% 0% 100%
C++ g++10.4210.436201763  0% 1% 1% 100%
 fannkuch-redux 
ATS57.8057.822881571  0% 0% 0% 100%
C++ g++25.0425.052921150  1% 0% 0% 100%
 regex-dna 
ATS27.6127.62165,2562482  0% 0% 0% 100%
C++ g++5.986.00185,560648  0% 1% 1% 100%

 4 : Are there other ATS programs for these benchmarks?

Remember - those are just the fastest ATS and C++ g++ programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for ATS.

Maybe one of those other ATS programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest ATS and C++ g++ programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 ATS : dependent types & linear types plus theorem proving 

online book Programming in ATS

ATS/Anairiats version 0.2.8

Home Page: ATS -- unleashing the potential of types!

Revised BSD license

  Home   Conclusions   License   Play