hello,
i wanted to test AngelScript execution speed, so, i've executed a loop from -100000 to 100000, in C++, the execution took about 37.7 seconds, but in AngelScript, it took about 96.3 seconds
i don't know, the AngelScript is eaven slower than lua (from other tests that i've read)
this is the script which is executed on the AngelScript:
void main()
{
InitTimer();
for(auto i=-100000;i<=100000;i++)
{
cout<<i<<"\n";
}
cout<<"\nexecution success\n";
cout<<"the execution took "+GetTime()+" seconds\n";
}
note that C++ streams must be registered with AngelScriptalso note that, systimer in basic compression library is used
and, this is the C++ code
#include <iostream>
#include <bcl/systimer.h>
using namespace std;
int main()
{
InitTimer();
for(auto i=-100000;i<=100000;i++)
{
cout<<i<<"\n";
}
cout<<"\nexecution success\n";
cout<<"the execution took "<<GetTime()<<" seconds\n";
}