mpi_array.benchmarks.bench_creation.NumpyCreateBench¶
-
class
mpi_array.benchmarks.bench_creation.NumpyCreateBench[source]¶ Bases:
mpi_array.benchmarks.bench_creation.CreateBenchComparison benchmarks for
numpy.empty(),numpy.zeros()etc.Methods
__init__()Initialise, set moduletoNone.free(a)Clean up array resources, over-ridden in sub-classes. free_mpi_array_obj(a)Free MPI communicators and MPI windows for the given object. get_globale_shape(locale_shape)Returns a globale array shape for the given shape of the locale array. setup(shape)Import numpymodule and assign tomodule.time_empty(shape)Time uninitialised array creation. time_full(shape)Time value-initialised array creation. time_ones(shape)Time one-initialised array creation. time_zeros(shape)Time zero-initialised array creation. Attributes
cart_comm_dimsgoal_timemoduleThe moduleused to create array instances.param_namesparamsrepeatwarmup_time