summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-11 14:18:50 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-11 14:18:50 -0400
commit71d9bd22e280bf3496287d3b12f18b4b504bfb96 (patch)
treed45cc56a0a58cddbb3e8ccdd6477c72337459205
parent4d58139b58c7eddc67f3838ac602c0d5b59e286f (diff)
downloadnodeMCU_rf_source_lmx2487-71d9bd22e280bf3496287d3b12f18b4b504bfb96.tar.gz
nodeMCU_rf_source_lmx2487-71d9bd22e280bf3496287d3b12f18b4b504bfb96.zip
benchmark of microwire interface
-rw-r--r--bench_lmx2487.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/bench_lmx2487.lua b/bench_lmx2487.lua
index 65d25fc..d1221d4 100644
--- a/bench_lmx2487.lua
+++ b/bench_lmx2487.lua
@@ -20,6 +20,10 @@ bench(function() local t={1}; t[2]=2; t[3]=3 end, 10 , "table expand by 2 elemen
bench(function() bit.rshift(4000000,1) end, 10 , "bit.rshift(4000000,1)")
+-- 8560613 corresponds to R2 settings
+bench(function(x) microwire_send_data( 8560613 ) end, 10, "microwire_send_data")
+bench(function(x) lmx2487_need_update[3]=true; send_register_lmx2487(2) end, 10, "send_register_lmx2487")
+
bench(function() freq2regestersValues(6.834e9) end, 10 , "freq2regestersValues")
-- main time hog