We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd35825 commit b067e36Copy full SHA for b067e36
2 files changed
.github/workflows/codspeed.yml
@@ -17,7 +17,8 @@ jobs:
17
- bench/testdata/take_strings-aarch64
18
- ls -alh /etc
19
- echo Hello, World!
20
- - tar czf /tmp/man.tar.gz /usr/share/man
+ - tar czf /tmp/news.tar.gz NEWS NEWS.old NEWS.older
21
+ - python3 bench/fib.py
22
valgrind:
23
- "3.26.0"
24
- "3.25.1"
bench/fib.py
@@ -0,0 +1,14 @@
1
+#!/usr/bin/env python3
2
+"""Simple recursive Fibonacci benchmark."""
3
+
4
5
+def fib(n):
6
+ """Calculate Fibonacci number recursively."""
7
+ if n <= 1:
8
+ return n
9
+ return fib(n - 1) + fib(n - 2)
10
11
12
+if __name__ == "__main__":
13
+ result = fib(35)
14
+ print(f"fib(35) = {result}")
0 commit comments