linkedlist

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
push/shift
var array = [];
var i;
for (i = 0; i < 100; i++) {
  array.push(i);
}

for (i = 0; i < 100; i++) {
  array.shift();
}

 
ready
linked list
var head = null;
var tail = null;

for (i = 0; i < 100; i++) {
  tail = { next: tail, value: i };
  head = head || tail;
}

while (head) {
  head = head.next;
}
ready

Revisions

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