Speed comparison Swissmicros / HP
|
12-23-2015, 10:27 PM
(This post was last modified: 01-26-2016 08:16 PM by Bernd Grubert.)
Post: #1
|
|||
|
|||
Speed comparison Swissmicros / HP
I have used the Bessel function of first kind to carry out a benchmark for some models of SwissMicros and HP. The program is taken from the book "HP-41 Extended Functions Made Easy" by Keith Jarett, Synthetix, 1983.
It can run on the HP-41C and the HP-15C with nearly the same code. The only modifications necessary is the conversion of the register and label numbers from one to two digits. The program for the 15C-calculator is listed at the bottom of the message. I calculated J(50,50.0). The calculator returned 0.1214090222 (result from Wolfram Alpha: 0.1214090218976...) Here are the execution times: Code: calculator | execution time | remarks The DM-41L* data refer to an DM-41L with DM-15 firmware. What wonders me is that the DM-41L is so much slower than the DM-15L. It's also strange, that the speed increase for the DM-41L from 12 MHz to 48 MHz is only 1.6x instead of 4x for the DM-15L. May be there is some potential for optimisation in the DM-41L. Here is the code I used: Code: # -------------------------------------------- EDIT: Updated the table with the data of the HP-15C and the converted DM-41L |
|||
12-24-2015, 06:35 AM
(This post was last modified: 12-24-2015 06:57 AM by HrastProgrammer.)
Post: #2
|
|||
|
|||
RE: Speed comparison Swissmicros / HP
So, DM-41L running at 48MHz on LPC1115 (32-bit ARM RISC CPU) runs just slightly faster (73.7 vs. 87.6 sec) than the original HP-41CV while 15+ years ago I was able to emulate HP-41C/CV/CX which runs ~3x (HP-41X) and ~1.8x (HP-41E) faster than the original, all this on an ancient HP-48GX (4-bit "stone age" CPU at ~3.8MHz)!
The only logical explanation is that display refresh takes an enormous amount of time on DM-41L. Try to disable a goose - put some ALPHA text on the display at the start of the program and report the results ... https://www.hrastprogrammer.com/hrastwood/ https://hrastprogrammer.bandcamp.com/ |
|||
12-24-2015, 12:12 PM
Post: #3
|
|||
|
|||
RE: Speed comparison Swissmicros / HP
(12-24-2015 06:35 AM)HrastProgrammer Wrote: The only logical explanation is that display refresh takes an enormous amount of time on DM-41L. Try to disable a goose - put some ALPHA text on the display at the start of the program and report the results ... I concur with your assumptions but displaying the goose alone doesn't help. I tried it with Xerxes' 8queens benchmark and got results in the same league. There possibly is some logic involved to emulate the original speed in certain places, such as pause or catalog display. This might come in the way when not needed. Marcus von Cube Wehrheim, Germany http://www.mvcsys.de http://wp34s.sf.net http://mvcsys.de/doc/basic-compare.html |
|||
12-24-2015, 12:49 PM
Post: #4
|
|||
|
|||
RE: Speed comparison Swissmicros / HP
I did the benchmark on the DM-41L again with "VIEW X" at the beginnig of the program. The execution time decreased by approx. 3 sec (70.5 sec @ 48MHz). In my opinion, the small decrease indicates that there must be another mechanism, that slows down the DM-41L.
|
|||
12-24-2015, 06:56 PM
Post: #5
|
|||
|
|||
RE: Speed comparison Swissmicros / HP
It would be interesting to see the same timing tests on the original HP-15C in addition
to the HP-15CLE. I know that the LE is MUCH FASTER than the original, but I believe the Swiss Micros is also quite a bit faster than the original HP-15C. Does anyone on this forum have an original HP-15C that they could run this bencmark on? |
|||
12-25-2015, 06:48 AM
Post: #6
|
|||
|
|||
RE: Speed comparison Swissmicros / HP | |||
12-25-2015, 08:43 AM
Post: #7
|
|||
|
|||
RE: Speed comparison Swissmicros / HP
Based on all above results, something is totally wrong with DM-41L implementation. 48MHz should run circles around the original HP-41C. DM-15L is much better in this regard ... 258.9s (original HP-15C) vs. 12.6s (DM-15L @ 48MHz) = 20 times faster (although, IMHO, with proper optimizations an 48MHz 32-bit RISC CPU should do much better than 20x).
https://www.hrastprogrammer.com/hrastwood/ https://hrastprogrammer.bandcamp.com/ |
|||
01-13-2016, 09:30 AM
(This post was last modified: 01-13-2016 09:40 AM by Bernd Grubert.)
Post: #8
|
|||
|
|||
RE: Speed comparison Swissmicros / HP
Here is another observation that may be related to the speed difference:
When I use the DM-15L (new version with metal domes) I sometimes (~every 10th to 20th) loose a keypress. The lost keypresses usually happens when I type fast. They cannot be reproduced and are not specific to certain keys. When I type slowly everything seems to be ok. Mr. Steinmann assumed that this could be a hardware problem and sent me a replacement foil with the metal domes, but the problem persists. I have never had this kind of problem with the DM-41L. It would be interesting to know, whether others have similar problems with the keyboard of the DM-15L. If this is the case the reasons for this may not lie in the hardware, but may be in the software implementation of the keypress detection. Regards Bernd |
|||
01-13-2016, 09:49 AM
Post: #9
|
|||
|
|||
RE: Speed comparison Swissmicros / HP
(01-13-2016 09:30 AM)Bernd Grubert Wrote: Here is another observation that may be related to the speed difference: A good way to test will be to flash your DM-41L with the DM-15L software and test if you have the problem... |
|||
01-13-2016, 11:21 AM
Post: #10
|
|||
|
|||
RE: Speed comparison Swissmicros / HP | |||
01-26-2016, 08:30 PM
(This post was last modified: 01-26-2016 08:36 PM by Bernd Grubert.)
Post: #11
|
|||
|
|||
RE: Speed comparison Swissmicros / HP
I have tried the 15L firmware on the DM-41L. The DM-41L with the other firmware is even a little bit faster than the DM-15L (see updated table in the first post).
Interestingly the keyboard problems appear on the modified DM-41L, too. Has anyone else observed keyboard problems with the DM-15L, too? |
|||
07-27-2018, 02:52 AM
Post: #12
|
|||
|
|||
RE: Speed comparison Swissmicros / HP
I just found this forum (woohoo!) and looking at all the threads from the beginning noticed this (I hope it isn't impolite to resurrect a dead thread here):
Quote:So, DM-41L running at 48MHz on LPC1115 (32-bit ARM RISC CPU) runs just slightly faster (73.7 vs. 87.6 sec) than the original HP-41CV while 15+ years ago I was able to emulate HP-41C/CV/CX which runs ~3x (HP-41X) and ~1.8x (HP-41E) faster than the original, all this on an ancient HP-48GX (4-bit "stone age" CPU at ~3.8MHz)!The Saturn processor that the HP-48 models used seems to support BCD calculations natively. From Wikipedia, concerning data registers: Quote:The 64 bits (16 nibbles) can hold BCD-formatted coded floating point numbers composed of a Plus and minus signs nibble, 12 mantissa digits and a 3-digit exponent stored in BCD format (±499).I'm not sure how many cycles an add takes on the Saturn architecture, for example, but it is probably still many times faster than the equivalent calculation on an ARM, since BCD support is not built in and probably takes many cycles to perform in software. I have always suspected that this is why the HP-49G+ only got a "3-7x" speedup despite having a 75mhz ARM processor. Can any DM-41L experts confirm how the math library handles elementary BCD operations? |
|||
04-07-2024, 06:06 PM
Post: #13
|
|||
|
|||
RE: Speed comparison Swissmicros / HP
Hello,
just for fun, I entered the PRG into my PX 15c and got a value of about 54 seconds. Not bad for a calculator with 8 Mhz. |
|||
04-14-2024, 02:21 PM
Post: #14
|
|||
|
|||
RE: Speed comparison Swissmicros / HP
(12-24-2015 06:56 PM)BarryMead Wrote: It would be interesting to see the same timing tests on the original HP-15C in addition The DM15L is about 4 times faster than the original HP-15C. I made a presentation at HHC2023 about the timings of the 15C, 15C LE, 15C CE, and DM15L. The video is available on YouTube.I apologise for the video a bit, as I was tired when made the presentation. Namir |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)