File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
third_party/cupy/statistics_tests Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ import time
2+
13import dpctl
24import numpy
35import pytest
3133@pytest .fixture (autouse = True )
3234def setup_each ():
3335 print ("\n [Setup] Run before each test" )
36+ start_time = time .time ()
3437 free_mem = dpctl .utils .intel_device_info (_dev ).get ("free_memory" , None )
3538 if free_mem :
3639 print (f"Global memory available: { free_mem } " )
3740 yield
41+ end_time = time .time ()
42+ duration = end_time - start_time
43+ print (f"\n [Test Duration] { duration :.4f} seconds" )
3844 print ("[Teardown] Run after each test" )
3945
4046
Original file line number Diff line number Diff line change 11import sys
2+ import time
23import unittest
34
45import dpctl
@@ -52,10 +53,14 @@ def for_all_dtypes_combination_bincount(names):
5253@pytest .fixture (autouse = True )
5354def setup_each ():
5455 print ("\n [Setup] Run before each test" )
56+ start_time = time .time ()
5557 free_mem = dpctl .utils .intel_device_info (_dev ).get ("free_memory" , None )
5658 if free_mem :
5759 print (f"Global memory available: { free_mem } " )
5860 yield
61+ end_time = time .time ()
62+ duration = end_time - start_time
63+ print (f"\n [Test Duration] { duration :.4f} seconds" )
5964 print ("[Teardown] Run after each test" )
6065
6166
You can’t perform that action at this time.
0 commit comments