From 92de76627baf7c239a517316d85150149403f0c9 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 11 Apr 2024 18:23:08 +0100 Subject: Add perf test --- test/e2e/fibo/test_fibo.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'test/e2e/fibo/test_fibo.py') 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 -- cgit v1.3