mdw-octoml commented on a change in pull request #8807:
URL: https://github.com/apache/tvm/pull/8807#discussion_r694915194
##########
File path: tests/python/unittest/test_runtime_measure.py
##########
@@ -56,5 +57,15 @@ def my_debug(filename):
assert ct > 10 + 2
+def test_benchmark_result():
+ r = BenchmarkResult([1, 2, 2, 5])
+ assert r.mean == 2.5
+ assert r.median == 2.0
+ assert r.min == 1
+ assert r.max == 5
+ assert r.std == 1.5
+
+
if __name__ == "__main__":
test_min_repeat_ms()
+ test_benchmark_result()
Review comment:
Oh, this is odd. Are we manually calling each test case in each test
file? pytest should do this for you.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]