table-tr-hover-test

JavaScript performance comparison

Test case created by uyeong

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<table>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
    <tr>
        <td>1</td>
        <td>12</td>
        <td>123</td>
    </tr>
</table>

Preparation code output

1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123
1 12 123

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
on - delegate
$("table").on("mouseenter", "tr", function(){
    $(this).css("background-color", "#eeeeee");
});
pending…
on
$("table tr").on("mouseenter", function(){
    $(this).css("background-color", "#eeeeee");
});
pending…

You can edit these tests or add even more tests to this page by appending /edit to the URL.

Compare results of other browsers

0 comments

Add a comment