Post Reply 
Summation based benchmark for calculators
01-20-2018, 04:37 PM
Post: #91
RE: Summation based benchmark for calculators
(01-20-2018 04:09 PM)grsbanks Wrote:  
(01-20-2018 04:03 PM)Michael de Estrada Wrote:  They are still not as good as your times, which no doubt is due to your code being more efficient.

For what it's worth, this is my code:

Code:
00 { 43-Byte Prgm }
01▸LBL "BM"
02 ABS
03 IP
04 RAD
05 TIME
06 →HR
07 STO 00
08 R↓
09 0
10▸LBL 00
11 RCL ST Y
12 ATAN
13 SIN
14 E↑X
15 3
16 1/X
17 Y↑X
18 +
19 DSE ST Y
20 GTO 00
21 TIME
22 →HR
23 RCL- 00
24 3600
25 ×
26 END

Yes, your code is better, since you are doing everything in the stack, whereas I am using variables. I didn’t realize you could access the stack with DSE and ISG, which really helps. My new times using your code are 6.83 sec with 1000 loops on batteries and 27.01 sec with 10000 loops on USB.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Summation based benchmark for calculators - Michael de Estrada - 01-20-2018 04:37 PM



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