Vjs vs jquery

Benchmark created by Pedro Martinez on


Description

vjs vs jquery

Preparation HTML

<!DOCTYPE html>
<html lang="en">
        <head>
                <meta charset="utf-8">
                <title>VJS vs. JQuery</title>
                <link rel="stylesheet" type="text/css" href="pv.css" />
        </head>
        <body>
                <div id="test"></div>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    </body>
</html>

Setup

document.getElementById("test");
    $("#test");

Test runner

Ready to run.

Testing in
TestOps/sec
byId
function id(name) {
    return document.getElementById(name);
}
var foo = id("test");

console.log(foo);
ready
$(id)
$('#test');
ready

Revisions

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

  • Revision 1: published by Pedro Martinez on