Compare Blitz VS C++ performance on logic

Blitz3D Forums/Blitz3D Programming/Compare Blitz VS C++ performance on logic

I've made a test to see if blitz can really compete with C++ for logic work. Here is the result and the source codes.

Blitz debug : 455
Blitz full speed : 101
C++ debug :1297
C++ full speed : 15

BLitz is 6.7 time slower than C++/C

Here is the source code

;--------------------------------------Blitz
t=MilliSecs()
For i=1 To 1000000
If i=1 Then j=2
If j=2 Then j=4 Else j=5
j=j+256
y#=y#+Cos(i)/100
Next
Print MilliSecs()-t



//-------------------------------------C++
#include "stdafx.h"
#include "math.h"
#include "time.h"
#include "stdio.h"

int _tmain(int argc, _TCHAR* argv[])
{
	int t=0,i=0,j=0,x=0;
	float y=0;
	t=clock();
	for (i=1;i<1000000;i++)
	{
		if (i==1)	j=2;
		if (j==2)  j=4; else j=5;
		j=j+256;
		y=y+acos(i)/100;
	}
	x=clock()-t;
	printf("time=%d", x);
	getchar();
	return 0;
}