mootools typeOf object check

Benchmark created by Mark on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/mootools/1.3/mootools-yui-compressed.js"></script>

Setup

obj = {a:'hello'};

Test runner

Ready to run.

Testing in
TestOps/sec
toType
a = ({}).toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase()
ready
mooTools
a = typeOf(obj);
ready

Revisions

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

  • Revision 1: published by Mark on
  • Revision 2: published by Mark on
  • Revision 3: published by Mark on
  • Revision 4: published by Mark on
  • Revision 5: published by Mark on