How to use Benchmark
class
#133
-
I'm unable to figure out how to use
|
Beta Was this translation helpful? Give feedback.
Answered by
czheo
May 13, 2023
Replies: 1 comment
-
from Benchmark import Benchmark
fn bench() -> Int:
fn _iter():
for i in range(10000):
pass
return Benchmark().run[_iter]()
print(bench()) This compiles but always return Also checkout this: #21 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mahmoudajawad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This compiles but always return
0
in the playground.Also checkout this: #21