From 5c14a35e6210fb8500456b3b4ca026cfeb889776 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 13 Aug 2010 09:50:03 -0700 Subject: initial perf testing --- perf/blank.html | 33 ++++ perf/buzz.css | 89 +++++++++ perf/buzz.html | 86 +++++++++ perf/buzz_raw.html | 548 +++++++++++++++++++++++++++++++++++++++++++++++++++++ perf/startup.html | 32 ---- src/Scope.js | 2 +- 6 files changed, 757 insertions(+), 33 deletions(-) create mode 100644 perf/blank.html create mode 100644 perf/buzz.css create mode 100644 perf/buzz.html create mode 100644 perf/buzz_raw.html delete mode 100644 perf/startup.html diff --git a/perf/blank.html b/perf/blank.html new file mode 100644 index 00000000..f38c368b --- /dev/null +++ b/perf/blank.html @@ -0,0 +1,33 @@ + + + + + + + + + reload +
+ READY + + diff --git a/perf/buzz.css b/perf/buzz.css new file mode 100644 index 00000000..5fd5763d --- /dev/null +++ b/perf/buzz.css @@ -0,0 +1,89 @@ +body { + background: -webkit-gradient(linear, left top, left 100, from(#bbb), to(#fff)); + background-repeat: no-repeat; + margin: 0px; + font-family: sans-serif; + font-size: 12px; +} + +body > div { + border-top: 1px solid white; + border-bottom: 1px solid black; + text-align: center; + background: -webkit-gradient(linear, left top, left bottom, from(#CCC), to(#888)); + -webkit-background-origin: padding; -webkit-background-clip: content; +} +body > div button { + margin: 5px; +} + +body > div span:FIRST-CHILD { + float: left; + font-family: monospace; + font-size: 1.5em; + color: black; + padding: 2px 5px; +} + +body > div span:last-child { + float: right; +} + +ul { + list-style: none; + padding: 10px; + margin: 0; +} + +body > ul > li { + border: 1px solid black; + margin: 15px 5px; + padding: 0; + -webkit-box-shadow: 5px 5px 5px #888; +} + +body > ul > li > h1 { + margin: 0; + background: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#999)); + font-size: 13px; + border-bottom: 1px solid black; +} + +h1 > img, +li > img { + max-height: 30px; + max-width: 30px; + vertical-align: middle; + padding: 3px; +} + +a > img { + margin-right: 5px; + margin-top: 5px; +} + +body > ul > li > h1 > a:last-child { + float: right; + margin: 10px; +} + +body > ul > li > div { + background-color: white; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd)); + margin: 0; + padding: 10px; +} + +body > ul > li ul { + margin: 0; + padding: 0; + margin-left: 5px; + border-left: 5px solid lightgray; +} + +body > ul > li ul > li { + margin: 0; + padding: 10px; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd)); +} + diff --git a/perf/buzz.html b/perf/buzz.html new file mode 100644 index 00000000..1d0e155c --- /dev/null +++ b/perf/buzz.html @@ -0,0 +1,86 @@ + + + + + + + + + + + + reload +
+
+ <angular/> Buzz + + filter: + + + + user: + + + +
+ + +
+ + diff --git a/perf/buzz_raw.html b/perf/buzz_raw.html new file mode 100644 index 00000000..fb1144af --- /dev/null +++ b/perf/buzz_raw.html @@ -0,0 +1,548 @@ + + + + + + + + + + reload +
+
+ <angular/> Buzz + + filter: + + + + user: + + + +
+ + +
+ + diff --git a/perf/startup.html b/perf/startup.html deleted file mode 100644 index 91a46898..00000000 --- a/perf/startup.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - reload -
- READY - - diff --git a/src/Scope.js b/src/Scope.js index 30e56915..27fafc3a 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -76,7 +76,7 @@ function getterFn(path){ code += ' type = angular.Global.typeOf(last);\n'; code += ' fn = (angular[type.charAt(0).toUpperCase() + type.substring(1)]||{})["' + name + '"];\n'; code += ' if (fn)\n'; - code += ' self = function(){ return fn.apply(last, [last].concat(slice.call(arguments, 0, arguments.length))); };\n'; + code += ' self = function(){ return fn.apply(last, [last].concat(Array.prototype.slice.call(arguments, 0, arguments.length))); };\n'; code += ' }\n'; } }); -- cgit v1.2.3