| | |
- benchmark_function(func, args, func_name)
- exercise()
- #--- test functions
- smp_map(func, iterable, chunksize=None, callback=None, nproc=None)
- t(args)
- # see http://dan.corlan.net/bench.html#PYTHON
# "The program we benchmarked computes the same 100-term polynomial 500,000
# times, using exactly the same algorithm. In all programs the indices of the
# polynomial are kept in a local float vector. In this, the program only tests
# the quality of code which accesses local vectors and performs simple
# arithmetics in loops, and is free from differences in the standard library,
# operating system calls and, indeed, the presence of any advanced language
# features."
# TODO: benchmark using a suitable cctbx function instead
|