Skip to content

๐Ÿ“ฆ Module

๐Ÿชœ Step by step script

To use the script as a module, you only need to import the class PerformanceAssessor() as so:

from perfassess.class_performance_assessor import PerformanceAssessor

...

You can also, for testing, import testor() as so:

...

from perfassess.testor import testor

...

You can now launch the class on testor() for instance:

...


assessor: PerformanceAssessor = PerformanceAssessor(
    main=testor,
    n_field=1,
    value=[0] * 1000
)

assessor.launch_profiling()
assessor.plot(path="output_directory/")

Do not forget to change ๐Ÿ“ output_directory/ as your wish!

๐Ÿงช Full test script

from perfassess.class_performance_assessor import PerformanceAssessor
from perfassess.testor import testor

assessor: PerformanceAssessor = PerformanceAssessor(
    main=testor,
    n_field=1,
    value=[0] * 1000
)

assessor.launch_profiling()
assessor.plot(path="output_directory/")