robohornet/robohornet — pull request #76 by maettig (2012-10-11 19:48:04+00:00)
Title: Object Scope Access Test

I created this test for several reasons:

1. It triggers a very strange bug in Opera (tested with the current 12.10 as well as older versions). One of the methods in my little suite is *100* times slower than the other methods.
2. The runtime of some of the methods is switched in Mozilla and WebKit engines. In Mozilla one of the methods is a little bit *faster* than the other. In WebKit the same method is a lot *slower* than the other.
3. Runtime in older Internet Explorer versions is horrible.

I found this bug while working on a JavaScript port of the SFXR sound effects engine. This requires a lot of math with a lot of variables.

[Here is the same test at jsPerf](http://jsperf.com/object-scrope-access/3).