Re: Euphoria to Java
- Posted by Jeffrey Fielding <JJProg at CYBERBURY.NET> Dec 02, 2000
- 506 views
On Sat, 2 Dec 2000, Jeffrey Fielding wrote: > Task exu my program > s = repeat(999, 100) 811733 690667 > z = x + y (both length 100) 210466 132933 > appending to a sequence 5413333 6811670 > slicing a sequence 2167500 3100000 By the way, the numbers for my program might be (a little) high because I use the like following: #include <time.h> void main() { time_t end_time = time(NULL)+15; while (time(NULL) < end_time) { do_benchmark cycles += whatever } cout << cycles/15 << endl; } Whereas Euphoria does more exact timing (since the time() function in Euphioria is floating-point, and the time function in C is a 32-bit int), and also I don't bother checking if it's taken a second more (as it probably hasn't). If anyone knows how to do more exact timing in C, tell me and I'll re-test it. Jeff