Permalink
Browse files

Update event-custom benchmark tests to use benchmark v1.0.0 API

I also replaced referenced the Benchmark source from Github directly instead
of everyone having their own local copy.
  • Loading branch information...
1 parent 0374fdd commit a153e7e0e13bd0b4969906b2a0a86ad3d6d6ab18 @tilomitra tilomitra committed Oct 18, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/event-custom/tests/benchmark/event-custom-benchmark.html
@@ -10,8 +10,8 @@
<div id="log"></div>
-<applet code="nano" archive="http://localhost/benchmark/nano.jar" style="display: none;"></applet>
-<script src="http://localhost/benchmark/benchmark.js"></script>
+<applet code="nano" archive="https://github.com/bestiejs/benchmark.js/raw/v1.0.0/nano.jar" style="display: none;"></applet>
+ <script type='text/javascript' src="https://raw.github.com/bestiejs/benchmark.js/v1.0.0/benchmark.js"></script>
<!--script src="http://yui.yahooapis.com/3.6.0pr2/build/yui/yui.js"></script-->
<script src="../../../../build/yui/yui.js"></script>
@@ -48,8 +48,8 @@
Y.log('Starting benchmarks.');
});
- suite.on('cycle', function (ev, bench) {
- Y.log(String(bench));
+ suite.on('cycle', function (ev) {
+ Y.log(String(ev.target));
});
suite.on('complete', function () {
@@ -58,7 +58,7 @@
});
start.on('click', function () {
- suite.run(true);
+ suite.run({async:true});
});
});
</script>

0 comments on commit a153e7e

Please sign in to comment.