bw2calc.speed_test#

Module Contents#

Classes#

SpeedTest

Compare speed of sparse matrix operations on this machine compared to a reference machine.

class bw2calc.speed_test.SpeedTest[source]#

Bases: object

Compare speed of sparse matrix operations on this machine compared to a reference machine.

density = 0.02[source]#
seed = 42[source]#
size = 1000[source]#
get_demand_vector()[source]#
get_sparse_matrix()[source]#

Adapted from scipy to use seeded RNG

ratio()[source]#

On the reference machine, this takes about 5.85 seconds

test()[source]#