Skip to content

Instantly share code, notes, and snippets.

@alFReD-NSH
Created February 15, 2013 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alFReD-NSH/4958683 to your computer and use it in GitHub Desktop.
Save alFReD-NSH/4958683 to your computer and use it in GitHub Desktop.
Knockout observable benchmark. Put the file in your knockout folder.
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
</head>
<body>
<script type="text/javascript" src="build/output/knockout-latest.js"></script>
<script type="text/javascript" src="https://raw.github.com/bestiejs/benchmark.js/v1.0.0/benchmark.js"></script>
<script type="text/javascript">
var suite = new Benchmark.Suite;
suite.add(function() {
ko.observable();
}).on('cycle', function(event) {
document.write(String(event.target));
}).run();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment