计算

Benchmark created on


Setup

function fibonacci(n) {  
  if (n === 0 || n === 1) {  
    return n;  
  } else {  
    return fibonacci(n - 1) + fibonacci(n - 2);  
  }  
}

Test runner

Ready to run.

Testing in
TestOps/sec
1
fibonacci(30)
ready
1
fibonacci(30)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.