pac test

JavaScript performance comparison

Revision 24 of this test case created

Info

pac speed test

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    function convert_addr(ipchars) {
      "use strict";
      var bytes, result;
      bytes = ipchars.split('.');
      result = ((bytes[0] & 0xff) << 24) | ((bytes[1] & 0xff) << 16) | ((bytes[2] & 0xff) << 8) | (bytes[3] & 0xff);
      return result;
    }
};
</script>

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
find in array (1)
convert_addr("192.168.8.1")
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment