mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
test(scripts): create measurement script tests
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# bench: Unit Target: X
|
||||
|
||||
# bench: Measure: Printing Time (ms)
|
||||
print(42)
|
||||
# bench: Measure: End
|
||||
|
||||
# bench: Alert: Printing Time (ms) != "abc"
|
||||
@@ -0,0 +1,7 @@
|
||||
# bench: Unit Target: X
|
||||
|
||||
# bench: Measure: Printing Time (ms)
|
||||
print(42)
|
||||
# bench: Measure: End
|
||||
|
||||
# bench: Alert: Printing Time (ms) === 10
|
||||
@@ -0,0 +1,7 @@
|
||||
# bench: Unit Target: X
|
||||
|
||||
# bench: Measure: Printing Time (ms)
|
||||
print(42)
|
||||
# bench: Measure: End
|
||||
|
||||
# bench: Alert: Accuracy (%) != 100
|
||||
@@ -0,0 +1,7 @@
|
||||
# bench: Unit Target: X
|
||||
|
||||
# bench: Measure: End
|
||||
|
||||
# bench: Measure: Printing Time (ms)
|
||||
print(42)
|
||||
# bench: Measure: End
|
||||
@@ -0,0 +1,6 @@
|
||||
# bench: Unit Target: X
|
||||
|
||||
if True:
|
||||
# bench: Measure: Printing Time (ms)
|
||||
print(42)
|
||||
# bench: Measure: End
|
||||
13
script/progress_tracker_utils/test_scripts/measure_nested.py
Normal file
13
script/progress_tracker_utils/test_scripts/measure_nested.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# bench: Unit Target: X
|
||||
|
||||
# bench: Measure: Printing Time Of Three (ms)
|
||||
|
||||
print(42)
|
||||
|
||||
# bench: Measure: Printing Time Of One (ms)
|
||||
print(42)
|
||||
# bench: Measure: End
|
||||
|
||||
print(42)
|
||||
|
||||
# bench: Measure: End
|
||||
@@ -0,0 +1,5 @@
|
||||
# bench: Unit Target: X
|
||||
|
||||
# bench: Measure: Printing Time Of Three (ms)
|
||||
|
||||
print(42)
|
||||
@@ -0,0 +1,5 @@
|
||||
# bench: Full Target: X
|
||||
|
||||
# bench: Measure: Printing Time (ms)
|
||||
print(420)
|
||||
# bench: Measure: End
|
||||
@@ -0,0 +1,5 @@
|
||||
# bench: Unit Target: X
|
||||
|
||||
# bench: Measure: Printing Time (ms)
|
||||
print(42)
|
||||
# bench: Measure: End
|
||||
Reference in New Issue
Block a user