12 Comment(s)MZ952Intermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthDrawingI like to draw!HobbiesReadingI like to read books!Hobbies4 months agoI've written essentially the same code looped 100 times in a routine whereupon ending it calculated the arithmetic mean of each counter. I ran this while I ate breakfast, here are my results:
Integer - 176445
Floating-point - 177165
String - 171828
Binary - 180373
Hexadecimal - 180545
Standard Index - 174469
Constant (#TRUE) - 180630
Literal Integer - 180438
Literal String - 176340
I suppose I neglected a literal floating-point test case. There seems to be some variation between each type, exactly what it means or if it means anything at all is up for speculation I guess.YttriaEdited 4 months agoaccording to these results:

Literal strings are a little faster than string variables (when passing to a function) but slower than other literals (they're stored as a length followed by the sequence, i.e. have to be interpreted more than just the push instruction)