I've repeated the benchmark gcc vs tcc

tcc compiles much faster (for -d:release in particular) but generates much 
slower executable
    
    
    --threads:off
    --cc:gcc
    
    Summary
      'ruby count.rb' ran
        1.51 ± 0.23 times faster than 'python count.py'
        2.12 ± 1.26 times faster than 'nim r -d:debug count.nim'
        2.63 ± 2.84 times faster than 'nim r -d:release count.nim'
        3.69 ± 0.58 times faster than 'nim e count.nim'
        5.38 ± 0.76 times faster than 'nim r -f -d:debug count.nim'
       12.21 ± 2.03 times faster than 'nim r -f -d:release count.nim'
       19.30 ± 3.17 times faster than 'bash count.bash'
    
    
    Run
    
    
    --threads:off
    --cc:tcc
    --passl:"-ldl -lm"
    
    Summary
      'ruby count.rb' ran
        1.58 ± 0.19 times faster than 'python count.py'
        2.24 ± 0.66 times faster than 'nim r -d:release count.nim'
        2.52 ± 0.78 times faster than 'nim r -d:debug count.nim'
        3.84 ± 0.45 times faster than 'nim e count.nim'
        3.86 ± 0.37 times faster than 'nim r -f -d:release count.nim'
        3.96 ± 0.39 times faster than 'nim r -f -d:debug count.nim'
       20.57 ± 2.16 times faster than 'bash count.bash'
    
    
    Run

Reply via email to