Skip to content

Instantly share code, notes, and snippets.

@ericf
Created April 3, 2013 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ericf/5305139 to your computer and use it in GitHub Desktop.
Save ericf/5305139 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<meta charset="utf8">
<title>JSON</title>
</head>
<body>
<h1>JSON Test Page</h1>
<script>
console.markTimeline('start');
console.profile('json');
console.time('json');
</script>
<script>
var data = "HUGE JSON DATA STRING";
</script>
<script>
console.timeEnd('json');
console.profileEnd('json');
console.markTimeline('end');
console.log(performance.timing);
console.log(performance.memory);
console.log(console.profiles[0]);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment