|[OT] Re: WP-34s: Speed benchmark|
Message #11 Posted by Tim Wessman on 28 Apr 2012, 1:43 p.m.,
in response to message #10 by Gilles Carpentier
Hmm... hopefully I didn't screw anything up so I will look foolish. It was 1:30 am my time. :-|
I retested with the exact source I have below just to make it as consistent as possible. Timing was done using 'Time(<progname>)' as the input where a time was required, and done using a check against the execution value where a manual stop was required.
The programming language on the 39gII is definitely an algebraic style language, but there is definitely influences from other places. It should be very easy and readable for just about anyone.
The NQueens was kept identical to the old "39gs" program basically as I wanted a comparison (~5m06s for those interested IIRC). I suspect it would go faster if modified to be a better structure.
WHILE Y>1 DO
IF T==0 OR X-Y==ABS(T) THEN
WHILE L1(X)==0 DO
UNTIL Y==1 END;
UNTIL X==R END;
The addition loop can be done like this, (stopped at 1 min with ON/C).
Math test and trig test have 'wonderful' algebraic nesting... :-(
Also, I believe I was remembering the loop test value incorrectly last night. I am seeing around 640,000 right now after several runs.
With these exact sources, I get these results after 5 runs averaged. I assumed radians mode. Degree mode loses about 100 or so over a minute.
Math: 85389/679*100 = 12576
Trig: 15198/40*100 = 37995
Sp/$: (2*12576+37995)/80*100 = 78934
Addition Loop Test: ~640,000
Edited: 28 Apr 2012, 1:48 p.m.