Created
August 19, 2013 22:25
-
-
Save sebastienros/6274930 to your computer and use it in GitHub Desktop.
Real life performance benchmark script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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