armi.matProps.tests.test_performance module

Test rough matProps performance timing.

class armi.matProps.tests.test_performance.TestPerformance(methodName='runTest')[source]

Bases: TestCase

The tests in this class are an early warning of matProps performance changes. It tests common operations that are done with matProps to ensure their execution time remains in the correct ballpark.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_load()[source]

Tests the speed of loading a set of material files.

test_pickle()[source]

Tests the speed of pickling a set of material files. Pickling is important for multiprocessing.

test_calc()[source]

Tests the speed of calculating a property value.

test_deepcopy()[source]

Tests the speed of deepcopying a material. Copying is important for copying other objects that may be referencing a matProps material.