Brute simple speed check program
09-06-2022, 09:43 AM (This post was last modified: 09-06-2022 12:51 PM by Bill Triplett.)
Post: #1
 Bill Triplett Junior Member Posts: 24 Joined: Dec 2013
Brute simple speed check program
At 3.2GHz the PC emulator needs one second to do 1000000 loops.
On an old Samsung Galaxy Note 4, the Android emulator is about 15 times slower than the PC version.
How do the actual physical calculators score? G1? G2?
Please try this program with a million loops, and share your test results:

Code:
// Input the number of loops. // Output is the number of seconds. EXPORT LOOP(N)   BEGIN    LOCAL S := 0, T, K;   T := TICKS();   FOR K FROM 1 TO N DO      S := S+1;   END;   T := TICKS() - T;   RETURN T/1000; END;

Attached File(s)
09-06-2022, 12:48 PM
Post: #2
 rawi Member Posts: 167 Joined: Nov 2019
RE: Brute simple speed check program
Quote:At 3.2GHz the PC emulator needs one second to do 1000000 loops.
On an old Samsung Galaxy Note 4, the Android emulator is about 15 times slower than the PC version.
How do the actual physical calculators score? G1? G2?

My G1 takes 54.92 sec, my G2 16.718. I think this is quite impressing.
09-06-2022, 01:23 PM
Post: #3
 Bill Triplett Junior Member Posts: 24 Joined: Dec 2013
RE: Brute simple speed check program
Rawi,

Thanks.

That means the simulator running on a Samsung Galaxy Note 4 is almost exactly equal to the G2. As a comparison, I wheeled out a TI-89 Titanium with hardware 3. A similar program incrementing a variable needed ten seconds to do 1000 loops. Ouch.

Bill
09-06-2022, 03:07 PM
Post: #4
 chromos Member Posts: 214 Joined: Jun 2015
RE: Brute simple speed check program

Geocaching Coords Solver, Number of triangles Puzzle, Snooker Counter
09-06-2022, 10:43 PM
Post: #5
 John Keith Senior Member Posts: 1,002 Joined: Dec 2013
RE: Brute simple speed check program
(09-06-2022 01:23 PM)Bill Triplett Wrote:  As a comparison, I wheeled out a TI-89 Titanium with hardware 3. A similar program incrementing a variable needed ten seconds to do 1000 loops. Ouch.

On my HP 50g in approximate mode, 1000 loops take 2.46 seconds.
09-07-2022, 05:47 AM
Post: #6
 Bill Triplett Junior Member Posts: 24 Joined: Dec 2013
RE: Brute simple speed check program
The HP-50g is charming because of the time it saves due to using fewer keystrokes, for most practical problem solving.

I just wish someone would create an update of the version 2.15 ROM without the IFTE bug. I keep a spare unit around running the 2.09 ROM, so IFTE works fine for me, but still...

Surely HP would not lose money, if they released the 2.15 ROM source code at this point in time. Some bright person(s) would be able to fix the bug, after some careful reading.
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)