diff options
-rw-r--r-- | bench_lmx2487.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bench_lmx2487.lua b/bench_lmx2487.lua index 6f13117..65d25fc 100644 --- a/bench_lmx2487.lua +++ b/bench_lmx2487.lua @@ -1,7 +1,7 @@ function bench(f, Nrepition, label) local tSt=tmr.now() for i = 1, Nrepition do - f() + f(i) end local tEnd=tmr.now() @@ -24,5 +24,6 @@ bench(function() freq2regestersValues(6.834e9) end, 10 , "freq2regestersValues") -- main time hog set_lmx2487_board_to_default_state() -bench(function() FreqToSettings(6.834e9) end, 1, "FreqToSettings") +bench(function(x) FreqToSettings(6.834e9+x*1.234e7) end, 10, "FreqToSettings") +bench(function(x) setFreq(6.834e9+x*1.234e7) end, 10, "setFreq") |