test body
JavaScript performance comparison
Preparation code
<body class="active second">
document.body.classList.contains("dairy-calf-segment") || document.body.classList.contains("no-segment")
document.body.classList.contains("dairy-calf-segment") || document.body.classList.contains("no-segment")
document.body.classList.contains("dairy-calf-segment") || document.body.classList.contains("no-segment")
</body>
Preparation code output
document.body.classList.contains("dairy-calf-segment") || document.body.classList.contains("no-segment")
document.body.classList.contains("dairy-calf-segment") || document.body.classList.contains("no-segment")
document.body.classList.contains("dairy-calf-segment") || document.body.classList.contains("no-segment")
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
One varriable |
|
pending… |
No varriable |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments