Optimizing Algorithms in AppleSoft Basic

From Evernote:

Optimizing Algorithms in AppleSoft Basic

Initial Run

More after the fold.
Simple Loop 1:07


View on screencast.com »

Simple Loop Test 1 - 0:53

Simple Loop Test 2 - 0:52

Simple Loop Test 3 - 0:52 858.46/s

Simple Square 1 - > 5:00

Simple Square 2 - 3:16 - 0:52 = 2:24 182.95/s

Simple Loop Test - 2Mhz - 0:27 1653.33/s

Simple Square - 2Mhz - 1:38 - 0:27 = 1:11 597/s

Simple Mod - 2Mhz - 3:45 - 0:27 = 3:18 225.45/s

Simple Mod FN - 2Mhz 4:28 - 0:27 = 4:01 185.23/s

Bad Loop - 2Mhz 2:55 - 0:27 = 2:28 180/s

Better Loop - 2Mhz 1:41 - 0:27 = 1:14 603/s