Describe the bug
I noticed that the queryTime reported by the benchmark can be completely off.
For example, NDS query32 was reported to run for 8 seconds while its actual time was 1.07 seconds. The 1.07 seconds matches the SHS UI and the rapids-tools report.
The root reason is that we use the current time upon return to the python code. This is not reliable way of measuring the actual query time.
https://github.com/NVIDIA/spark-rapids-benchmarks/blob/2ad6b996789523617301c1dc0bb79254a891a889/utils/python_benchmark_reporter/PysparkBenchReport.py#L101-L103
We should instead extract the query execution time from an eventlistener, or from the evntlog itself.
Describe the bug
I noticed that the queryTime reported by the benchmark can be completely off.
For example, NDS query32 was reported to run for 8 seconds while its actual time was 1.07 seconds. The 1.07 seconds matches the SHS UI and the rapids-tools report.
The root reason is that we use the current time upon return to the python code. This is not reliable way of measuring the actual query time.
https://github.com/NVIDIA/spark-rapids-benchmarks/blob/2ad6b996789523617301c1dc0bb79254a891a889/utils/python_benchmark_reporter/PysparkBenchReport.py#L101-L103
We should instead extract the query execution time from an eventlistener, or from the evntlog itself.