Prototype chaining speed test

This test create a prototypal chain and access to a value that belongs to the last element of the chain (assuming the current one is the first one).

It mesures how long it takes to traverse a long chain of prototypes. Each test is run 1'000 times! So it's usually very fast.

1'000 iterations

Depth Time (ms) Per lookup (ms)

NB: Opera (9.64) crashes with a big depth (between 216 and 217), a segmentation fault.

By Yoan Blanc; 2009-04-10