BenchMark

This section contains source code documentation of Benchmark extension.

benchmark

Benchmark extension for tuning and testing hydra toolkit performance

class hydratk.extensions.benchmark.benchmark.Extension(core_instance=None)

Class Extensions

_init_extension()

Method initializes extension

Parameters:none
Returns:void
_register_actions()

Method registers actions

Callback for command start-benchmark

Parameters:none
Returns:void
_setup_params()

Method sets parameters

Command option –details

Parameters:none
Returns:void
start_bench_fc()

Method handles command start-benchmark

Parameters:none
Returns:void
_run_basic_tests()

Method runs basic tests

Parameters:none
Returns:void
_print_test_info()

Method prints test results

Parameters:none
Returns:void
_event_thru_test()

Method tests event throughput

Parameters:none
Returns:void
Raises:event – benchmark_test_event1
_factorial_test()

Method tests factorial calculation

Parameters:none
Returns:void
_fib_test()

Method tests Fibonacci calculation

Parameters:none
Returns:void
_calc_flops_test()

Method tests arithmetic operations with floating point

Parameters:none
Returns:void
_Extension__fibcalc(n)

Method calculates Fibonacci number

Parameters:n (int) – nth number
Returns:number
Return type:int