astropy / astropy-benchmarks

Benchmarks for the astropy project
https://spacetelescope.github.io/bench/astropy-benchmarks/
BSD 3-Clause "New" or "Revised" License
7 stars 27 forks source link

Add fits benchmarks #80

Closed saimn closed 5 years ago

saimn commented 5 years ago

Closes #76, and also ref https://github.com/astropy/astropy/pull/8502

I ran this locally to compare https://github.com/astropy/astropy/pull/8502 with v3.0.2 (so the comparison also includes changes from https://github.com/astropy/astropy/pull/8428, it is just to check that it is working correclty):

(py37) ❯ asv compare 275807902 0608e7a57

All benchmarks:

       before           after         ratio
     [27580790]       [0608e7a5]
          728±1ms        741±0.3ms     1.02  io_fits.FITSBinTableHDU.time_from_columns_bytes
         33.2±1ms         21.1±0ms    ~0.63  io_fits.FITSHDUList.time_getheader
-         1.59±0s        157±0.1ms     0.10  io_fits.FITSHDUList.time_getheader_ext50
-         3.15±0s        256±0.6ms     0.08  io_fits.FITSHDUList.time_len
-      21.6±0.2ms      18.4±0.04ms     0.85  io_fits.FITSHeader.time_fromstring
      7.10±0.03μs      7.12±0.03μs     1.00  io_fits.FITSHeader.time_get_float
      7.70±0.05μs      7.68±0.04μs     1.00  io_fits.FITSHeader.time_get_hierarch
      7.06±0.02μs      7.13±0.04μs     1.01  io_fits.FITSHeader.time_get_int
      7.10±0.02μs      7.09±0.02μs     1.00  io_fits.FITSHeader.time_get_str
      2.46±0.06ms      2.36±0.01ms     0.96  io_fits.FITSHeader.time_tostring
           failed           failed      n/a  io_fits.FITSHighLevelTableBenchmarks.time_read_nommap
         200±20ms         191±10ms     0.96  io_fits.FITSHighLevelTableBenchmarks.time_write