Performance measurement#

onetick.py and OneTick provide some tools and classes to run the query and measure its performance.

measure_perf.exe#

Function onetick.py.perf.measure_perf() can be used to call OneTick’s measure_perf.exe tool.

It runs specified query and prints the summary in the specified file.

Parsing summary#

Classes onetick.py.perf.PerformanceSummaryFile and onetick.py.perf.MeasurePerformance can be used to parse contents of the summary file to python format.

Additionally, configuration parameter stack_info can be used to add some python debug information to the parsed result.