test-9134974

JavaScript performance comparison

Test case created

Preparation code

<span class="email_module">
  example@example.com
</span>
<span class="email_module">
  somebody@somebody.com
</span>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>

Preparation code output

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
jQuery Map
var emails = $('.email_module').map(function() {
  return $(this).text();
}).get();
pending…
JQuery Loop To Array
var arr = [];
$(".email_module").each(function(i, j) {
  arr.push($(j).text().trim());
});
pending…
jQuery Make Array
$.makeArray( $(".email_module").text().trim());
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