HP-41CL Speed test vs. DM41X and DM42 - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: Not HP Calculators (/forum-7.html) +--- Forum: Not quite HP Calculators - but related (/forum-8.html) +--- Thread: HP-41CL Speed test vs. DM41X and DM42 (/thread-15744.html) |
HP-41CL Speed test vs. DM41X and DM42 - CY-CL - 10-17-2020 10:24 AM xxxxxx RE: HP-41CL Speed test vs. DM41X and DM42 - Sylvain Cote - 10-17-2020 11:00 AM These are the result I got for my DM41X and 41CL when I ran HPMike Speed Test program he posted on SM site. DM41X results with a hundred times loop: Code: FAST => 15.27 seconds 41CL results with a hundred times loop: Code: TURBO50 => 5.76 seconds HPMike DM42 result was 0.70 seconds. RE: HP-41CL Speed test vs. DM41X and DM42 - grsbanks - 10-17-2020 11:01 AM Obviously it depends on the test but I think those figures are out by quite a bit. The DM41X isn't that fast. I wouldn't expect it to be much faster than the 41CL in TURBO50 mode because the CL uses hardware emulation (NEWT CPU) while the DM41X uses software emulation running on an STM32L476 chip. I have a benchmark that gets the calculator being tested to chew through a bunch of transcendental functions in a loop. DM42 on USB power: 2.6 ms/iteration DM42 on batteries: 6.5 ms/it. DM41X on USB power: 35 ms/it. 41CL on TURBO50: 40 ms/it. DM41X on batteries: 106 ms/it. 41CL on TURBO10: 142 ms/it. I have another benchmark that finds all the solutions to the "N Queens" problem for a given board size (the only others I've seen stop at the first solution). Some machines were too slow to run the test on an 8×8 board so these are the results for a 7×7 board: DM42 on USB power: 6.84s DM42 on battery power: 16.04s DM41X on USB power: 130.29s 41CL on TURBO50: 388.12s DM41X on battery power: 407.32s 41CL on TURBO10: 811.87s Clearly the DM41X has an advantage over the 41CL in integer calculations for some reason. I don't know why because they're both running the original 41CX ROM. RE: HP-41CL Speed test vs. DM41X and DM42 - Sylvain Cote - 10-17-2020 11:33 AM (10-17-2020 11:01 AM)grsbanks Wrote: I don't know why because they're both running the original 41CX ROM.All ROMs in a 41CL are stored in a speed modified padded 16 bits ROM format on which 2 bits (bit 13 & 12) are used to specified dynamic speed change when code is running. So, even though TURBO50 (x50) is active, some MCode instructions will still be running at TURBOX (x1) for compatibility reason. Extract taken from the 41CL User Manual: Quote:The Turbo Functions give you control over the operating speed of the calculator. Turbo mode is explained in details in NEWT Microprocessor Technical Manual, pages 127 to 129. Sylvain RE: HP-41CL Speed test vs. DM41X and DM42 - grsbanks - 10-17-2020 02:16 PM Absolutely, I do know that the speed increase is not linear and that TURBO50 will not make programs run 5× faster than TURBO10. That's not what puzzled me. What puzzled me is the difference in relative speeds for the two machines. For the first test, a DM41X on USB power completes it in more or less the same time as a 41CL running in TURBO50 mode (35ms per iteration vs. 40ms). For the second test, the DM41X on USB power is 3× faster than a 41CL in TURBO50 mode. The stopwatch is used in the same way for both tests. Neither test uses any instructions from a physical module (so no i/o on the expansion bus is needed). RE: HP-41CL Speed test vs. DM41X and DM42 - smartin - 10-17-2020 03:34 PM (10-17-2020 11:01 AM)grsbanks Wrote: Obviously it depends on the test but I think those figures are out by quite a bit. The DM41X isn't that fast. I wouldn't expect it to be much faster than the 41CL in TURBO50 mode because the CL uses hardware emulation (NEWT CPU) while the DM41X uses software emulation running on an STM32L476 chip. Interesting comparison. Can you run these for a stock 41CX for reference? RE: HP-41CL Speed test vs. DM41X and DM42 - John Keith - 10-17-2020 03:35 PM (10-17-2020 10:24 AM)CY-CL Wrote: Very interesting is the DM42, this calculator runs with WARP Speed. He is 30 times faster than the DM41X and 41 times faster than the HP-41CL As stated elsewhere, the DM42 runs Free42 which is a stand-alone program, not running on an emulation layer. RE: HP-41CL Speed test vs. DM41X and DM42 - grsbanks - 10-17-2020 04:10 PM (10-17-2020 03:34 PM)smartin Wrote: Interesting comparison. Can you run these for a stock 41CX for reference? I tested a 41C with a handheld stopwatch a long time ago, before I bought a Time Module (or a 41CX). It went through the transcendental functions in about 1.4 seconds per iteration. It solved all the "N Queens" layouts for a 7×7 board in 5547 seconds. |