Page 1 of 3

Benchmark Speed?

Posted: Wed May 15, 2019 12:24 pm
by toml_12953
Am I crazy or what (my wife votes YES) On https://www.hpmuseum.org/speed.htm there are a couple benchmarks. One for arithmetic and one for trig.

I put the following programs into the DM42 and got 21,880 for the Math program and 3,081 for the Trig program!
Is the DM42 really that much faster than the HP 9100 or did I not enter the programs right?
I find those numbers hard to believe.

Code: Select all

01▸LBL "MATH"
02 0
03 STO 02
04 1012340
05 STO 00
06 2.345
07 STO 01
08▸LBL 00
09 RCL 01
10 RCL 00
11 ×
12 RCL 01
13 -
14 RCL 00
15 ÷
16 RCL 01
17 ×
18 3.5
19 ÷
20 SQRT
21 1
22 STO+ 02
23 GTO 00
24 END

Code: Select all

01▸LBL "TRIG"
02 56.26
03 STO 00
04 0
05 STO 02
06▸LBL 00
07 RCL 00
08 SIN
09 ASIN
10 COS
11 ACOS
12 TAN
13 ATAN
14 LN
15 E↑X
16 1
17 STO+ 02
18 GTO 00
19 END

Re: Benchmark Speed?

Posted: Wed May 15, 2019 12:40 pm
by grsbanks
The DM42 definitely IS fast. Depending on the operations you're carrying out, it'll run up to 400x faster than an HP-42S.

Re: Benchmark Speed?

Posted: Wed May 15, 2019 12:42 pm
by Thomas Okken
Calculators today are a lot faster than 50 years ago! And the DM42 runs somewhat slow in order to conserve the battery. Compare Free42 running on an iPhone, 64-bit code on a fast CPU; the numbers I get for those two benchmarks are 5,593,077 and 481,193.

Re: Benchmark Speed?

Posted: Wed May 15, 2019 4:58 pm
by toml_12953
grsbanks wrote:
Wed May 15, 2019 12:40 pm
The DM42 definitely IS fast. Depending on the operations you're carrying out, it'll run up to 400x faster than an HP-42S.
Looks like a lot more than 400 times to me!

HP 9100 Math final R2 value: 679
HP 9100 Trig final R2 value: 40

Re: Benchmark Speed?

Posted: Wed May 15, 2019 5:02 pm
by toml_12953
Thomas Okken wrote:
Wed May 15, 2019 12:42 pm
Calculators today are a lot faster than 50 years ago! And the DM42 runs somewhat slow in order to conserve the battery. Compare Free42 running on an iPhone, 64-bit code on a fast CPU; the numbers I get for those two benchmarks are 5,593,077 and 481,193.
¡Caramba! Any faster and that machine will give you answers before you ask the questions! :o

Re: Benchmark Speed?

Posted: Wed May 15, 2019 5:20 pm
by Thomas Okken
toml_12953 wrote:
Wed May 15, 2019 5:02 pm
Thomas Okken wrote:
Wed May 15, 2019 12:42 pm
Calculators today are a lot faster than 50 years ago! And the DM42 runs somewhat slow in order to conserve the battery. Compare Free42 running on an iPhone, 64-bit code on a fast CPU; the numbers I get for those two benchmarks are 5,593,077 and 481,193.
¡Caramba! Any faster and that machine will give you answers before you ask the questions! :o
Yes... It's gotten to the point where, when I'm running a program, if the program hasn't finished by the time I lift my finger from the screen, it means something is wrong. One second in the app is equivalent to hours on the original calculator.

Re: Benchmark Speed?

Posted: Wed May 22, 2019 3:30 am
by StatsDoctor
Thanks for sharing these programs and this info. Here are the results that I get. Note that comparing the iPhone results with the other results is not really a fair comparison since the iPhone itself is a small computer.

For MATH:
iPhone XS Max 512 GB, using the Free42 app – 4,176,199
DM42 – 21,339
HP 42-S – 232

The iPhone is 196 times faster than the DM42 and 18,000 times faster than the HP 42-S. The DM42 is 92 times faster than the HP 42-S.

For TRIG:
iPhone XS Max 512 GB, using the Free42 app – 332,663
DM42 – 3,022
42-S – 136

The iPhone is 110 times faster than the DM42 and 2,446 times faster than the HP 42-S. The DM42 is 22 times faster than the HP 42-S.

Note that I have several other RPN programs stored on these devices (and many MP3 music files stored on the iPhone), so this may slow things down a little. The iPhone is running off of the battery and is not charging. The battery on the DM42 is at 2.89V; this device is not connected to a computer.

Re: Benchmark Speed?

Posted: Wed May 22, 2019 7:15 pm
by fkunz
Here some more values for comparison:

Android Free42 on Nokia 6 running on battery:
MATH 3,874,281
TRIG 487,780

Android Free42 on Nokia 6 running on power supply:
MATH 7,503,283
TRIG 525,169

Free32 DEC on AMD Phenom(tm) II X3 705e Linux
MATH 1,715,889
TRIG 1,010,376

DM42 connected with USB (CPU @ 80MHz)
MATH 68,955
TRIG 8,512

Br,
Frank

Re: Benchmark Speed?

Posted: Thu May 23, 2019 12:50 am
by RNav
All said... I'd still choose a DM42 over my smartphone app for crunching numbers.

Re: Benchmark Speed?

Posted: Thu May 23, 2019 4:15 am
by StatsDoctor
Here are a couple of new results along with the previous ones that I reported.

For MATH:
iPhone XS Max 512 GB, using the Free42 app, running on power supply – 4,196,063
iPhone XS Max 512 GB, using the Free42 app, running on battery – 4,176,199
DM42, connected to computer with USB – 69,369
DM42, running on battery – 21,339
HP 42-S – 232

For TRIG:
iPhone XS Max 512 GB, using the Free42 app, running on power supply – 335,628
iPhone XS Max 512 GB, using the Free42 app, running on battery – 332,663
DM42, connected to computer with USB – 10,017
DM42, running on battery – 3,022
HP 42-S – 136

It is interesting that for the iPhone, running the programs using a power supply yielded only slightly better results than running the programs using the battery. For the DM42, running the programs using a power supply yielded results that were much better than running the programs using the battery.

Best,

Bob