jquery simple or native_01
JavaScript performance comparison
Preparation code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>
無題ドキュメント
</title>
</head>
<body>
<div id="test">
<p>
</p>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
</body>
</html>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
jquery simple selector |
|
pending… |
jquery native selector |
|
pending… |
jquery simple selector + native |
|
pending… |
jquery native selector only |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments