Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

experimenting with Dial performance test writting

  • Loading branch information...
commit 95bb5f0ee46026d5124ae38091727583736f1b5b 1 parent 25e1985
Jeff Conniff jconniff authored
Showing with 53 additions and 0 deletions.
  1. +53 −0 src/dial/tests/perf/dial-benchmark.html
53 src/dial/tests/perf/dial-benchmark.html
View
@@ -0,0 +1,53 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<title>simple perf.</title>
+
+<!-- Source File and Seed for YUI3-->
+<link rel="stylesheet" type="text/css" href="../../../../build/cssreset/reset-min.css">
+<link type="text/css" rel="stylesheet" href="../../../../build/cssfonts/fonts-min.css">
+
+<script src="../../../../build/yui/yui.js"></script>
+</head>
+<style>
+.foo {
+/* position:absolute;
+ top:100px;
+ left:100px;
+*/
+ margin:100px auto;
+ border:solid 1px #f00;
+ width:200px;
+ height:200px;
+}
+</style>
+<body class="yui3-skin-sam">hello
+
+ <div class="dial-container foo"></div>
+</body>
+</html>
+<script>
+ YUI({filter:'raw'}).use("dial", function(Y) { //, filter:'raw' this make it really hard to clear cache on iPad
+ //dial.render(".dial-container");
+ //Y.on('mousedown',function(e){alert('clicked ring' + e.pageX);}, dial._ringNode);
+
+
+ var doTest,
+ i;
+
+ var dialInstance = function(){
+ var dial = new Y.Dial({});
+
+ }
+
+ doTest = function(){
+ console.profile('dialProfile');
+ for (i = 0; i < 100; i+=1) {
+ dialInstance();
+ }
+ console.profileEnd('dialProfile');
+ }
+ //doTest();
+
+ });
+</script>
Please sign in to comment.
Something went wrong with that request. Please try again.