removeClass99 (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
vanilla
var z = document.body, c = " classname";
z.classList = z.classList.map(function(class) {
  return class !== c;
});
ready
jquery
var z = $('body'), c = " classname";
z.removeClass(c);
ready
combination
ready

Revisions

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

  • Revision 1: published by David Condrey on
  • Revision 2: published on