Test of with() for setting style

Warning: these benchmarks will take a number of seconds to run. Other system activity will cause these benchmarks to skew.

Run benchmarks

This is the node whose style will be adjusted

The results should not be compared between browsers for they are run on different systems, however results for the same browser are relative to each other.

Typical results

IE Safari Gecko
with()
with(foo.bar.node.style){
	position="relative";
	...
}
516 747 891
direct access
foo.bar.node.style.position="relative";
...
703 806 1297
using temp variable
var x = foo.bar.node.style;
x.position="relative";
...
500 720 796