Re: Eu vs PowerBasic
- Posted by jeremy (admin) Jun 10, 2009
- 1264 views
This is a pretty useless benchmark, kinda funny it's even used. I tried to find a trial version of powerbasic so I could do a more helpful benchmark, but they don't offer it, I guess you have to pay the $199 for it. How many times do you loop from 1 to 100000000 doing one calculation? The problem is that the loop is probably optimized out and you have constants so the compiler can easily write the program as:
double x = 2.687982717e+43; print x
For example, I converted the program to C. When running w/no loop optimization, C takes 0.58 seconds. Add in loop optimization, C goes down to 0.031 seconds. It simply optimized the loop.
You are far better off doing a test that does some actual real world work. Since you cannot download power basic as a demo, we cannot run such a test. To claim it's fast because of this loop optimization is pretty lame in my book. Now, should euphoria have such optimizations? Probably. Will it make a 900% difference in real applications? No way.
Jeremy