This is the benchmarker for the CoolerSpace library. The CoolerSpace GitHub repository can be found here.
We have used several Unsplash photographs to benchmark the efficacy of CoolerSpace. Please refer to this file for links to the original photographs and credits.
We have included 4 different benchmarker programs in this repository.
- benchmarker.py: This program benchmarks compilation time, optimization time, and runtime of CoolerSpace on several programs in the programs directory. Test files are output to the
results
directory. - numba_programs/benchmark.py: This program benchmarks equivalent programs written in numba. Generates the
numba.csv
results file. - cupy_programs/benchmark.py: This program benchmarks equivalent programs written in CuPy. Generates the
cupy.csv
results file. - colourscience_programs/benchmark.py: This program benchmarks equivalent programs written in ColourScience. Generates the
cs.csv
results file.
The cases
variable in each of these benchmark programs can be modified to choose which programs to benchmark at what resolutions.
The TRIAL_COUNT
variable is used to set the number of trials that are run for every test case.
Nvidia CUDA dependencies are required depending on which version of ONNX Runtime you have installed. Please refer to this website to look up which version of CUDA and cuDNN you need to run benchmarker.py.