Test1234_1

Benchmark created on


Preparation HTML

<script>
  function T()
  {
  var t = this;
  t._a = [];
  t._a[0] = 1;
  t._a[1] = 2;
  t._a[2] = 3;
  }
  T.prototype = {
  getA:function()
  {
  return this._a[0];
  },
  getB:function()
  {
  return this._a[1];
  },
  getC:function()
  {
  return this._a[2];
  }
  }
  
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Object hash
var obj = {};

obj['aaa'] = 1;
obj['bbb'] = 2;
obj['ccc'] = 3;
ready
Object hash1
var t = new T();
t.getA();
t.getB();
t.getC();
 
ready

Revisions

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