BenchMark Class#
- class BenchMark.Benchmark#
Bases:
object
Benchmarks functions timing how long it takes for lines of code to execute. Used in development when apraising execution time of loops and read cycles when accessing csv files.
- bench_end(printed_text)#
Stops the benchmark counter, call this at the end of your code.
- Args:
- printed_text
String value, This will be the label assigned to the benchmark when printed to the console.
- bench_start()#
Starts the benchmark counter, call this at the start of your code.
- set_bench(to_print)#
Decides if the benchmark results should be printed to the console, instead of deleting benchmark code you can set this to false at the start of your script.
- Args:
- to_print
Boolean value denoting whether to print benchmark results.