aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/fibo
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2024-04-11 18:23:08 +0100
committerJan Tuomi <jan@jantuomi.fi>2024-04-11 18:23:08 +0100
commit92de76627baf7c239a517316d85150149403f0c9 (patch)
treeea8d80e88584f5d383a4e11237d8e56c37c414e8 /test/e2e/fibo
parent3963742d5cc195bbbcc8081ec261b0d3e0c1d83d (diff)
Add perf test
Diffstat (limited to 'test/e2e/fibo')
-rw-r--r--test/e2e/fibo/test_fibo.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/e2e/fibo/test_fibo.py b/test/e2e/fibo/test_fibo.py
index 65af07a..664e701 100644
--- a/test/e2e/fibo/test_fibo.py
+++ b/test/e2e/fibo/test_fibo.py
@@ -22,13 +22,6 @@ def test_fibo():
elapsed = end - start
print("Elapsed time:", elapsed, "ns")
steps_taken = machine.steps_taken
-
- # VGA frequency is 25.175 MHz
- # Divided by 16, that's 1.5734375 MHz (main clock)
- # Instructions take 3–5 cycles, the average instruction takes around 4 cycles
- # 1.5734375 MHz / 4 = 393359.375 Hz
- # That is the goal instruction frequency
- # TODO limit emulation speed to 393359.375 Hz
print("Instructions / second:", steps_taken / (elapsed / 1e9))
assert machine.ra.value == 41443