Skip to content

Instantly share code, notes, and snippets.

@sebastienros
Created August 19, 2013 22:25
Show Gist options
  • Save sebastienros/6274930 to your computer and use it in GitHub Desktop.
Save sebastienros/6274930 to your computer and use it in GitHub Desktop.
Real life performance benchmark script
var o = {};
o.Foo = 'bar';
o.Baz = 42;
o.Blah = o.Foo + o.Baz;
function fib(n){
if(n<2) {
return n;
}
return fib(n-1) + fib(n-2);
}
fib(3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment