Hi,
I am developping an application using the ExternalInterface API a lot
(well not sure anymore..). But after a few runs a noticed huge
performance differences between IE7 and FF2. I decided to quickly
benchmark them ; here are my results.
100 calls : FF=30ms, IE=1600
1000 : FF=200, IE=3200
10000 : FF=5000, IE=40000
results are quite variable but IE is always way higher than FF...
Are there any plan to improve this API in IE ???
{Maz}
here is my simple benchmark code =============
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:local="*" layout="vertical">
<mx:Script>
<![CDATA[
import flash.utils.getTimer;
public function run():void {
var sTime:Number = getTimer();
for (var i:uint = 0; i<Number(nruns.text); i++)
{
traceT(ExternalInterface.call("test",
i));
}
traceT("\n");
traceT((getTimer()-sTime) + " ms.");
traceT("Results : ");
}
private function traceT(s:String):void{
textA.text = s + "\n" + textA.text;
}
]]>
</mx:Script>
<mx:Panel width="400" height="100%" title="performances">
<mx:HBox width="100%" horizontalAlign="center"
defaultButton="{bRun}">
<mx:TextInput id="nruns" text="100"/>
<mx:Button id="bRun" click="run()" label="run!"/>
</mx:HBox>
<mx:TextArea id="textA" width="100%" height="100%" />
</mx:Panel>
</mx:Application>