Generating Tagged Values

JavaScript performance comparison

Test case created by austinddavis

Preparation code


      
      <script>
Benchmark.prototype.setup = function() {
  function block(_tag, ref) {
    ref.tag = _tag;
    return ref;
  };
  
  var x;

};
</script>

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Array Ref - Int32 Tag
x = block(18 | 0, ["value"]);
pending…
Object Ref - Int32 Tag
x = block(19 | 0, { contents: "value" });
pending…
Raw Value
x = "value";
pending…
Object Ref - Number Tag
x = block(24, { contents: "value" });
pending…
Array Ref - Number Tag
x = block(92, ["value"]);
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.

0 Comments