You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
351 B
19 lines
351 B
@micropython.viper
|
|
def f1c(x:int) -> int:
|
|
return x
|
|
|
|
@micropython.native
|
|
def call(r):
|
|
f = f1c
|
|
for _ in r:
|
|
f(1)
|
|
|
|
bm_params = {
|
|
(50, 10): (15000,),
|
|
(100, 10): (30000,),
|
|
(1000, 10): (300000,),
|
|
(5000, 10): (1500000,),
|
|
}
|
|
|
|
def bm_setup(params):
|
|
return lambda: call(range(params[0])), lambda: (params[0] // 1000, None)
|
|
|