in stage03-workload/workload/perf_server.py [0:0]
def calculate_fibonacci(n):
"""Calculates the nth Fibonacci number recursively
(inefficient for the sake of CPU load)
"""
if n <= 1:
return n
else:
return calculate_fibonacci(n - 1) + calculate_fibonacci(n - 2)