aboutsummaryrefslogtreecommitdiffstats
path: root/bench/fib.py
diff options
context:
space:
mode:
Diffstat (limited to 'bench/fib.py')
-rw-r--r--bench/fib.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bench/fib.py b/bench/fib.py
new file mode 100644
index 0000000..ceb7406
--- /dev/null
+++ b/bench/fib.py
@@ -0,0 +1,5 @@
1n = 1000
2a, b = 0.0, 1.0
3for i in range(0, n):
4 a, b = b, a + b
5print(a)