Speed Test...casting Ints as objects and such...

BlitzMax Forums/BlitzMax Programming/Speed Test...casting Ints as objects and such...

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

On a Core 2 Duo 6700 @2.66Ghz, 3gb ram

debug on:

Convert from object to int via cast to string then int results.
Elapsed time over: 100000000 iterations: 6192.0000000000000

Convert from string to int results.
Elapsed time over: 100000000 iterations: 5600.0000000000000

Get int value from wrapper object results.
Elapsed time over: 100000000 iterations: 4551.0000000000000

No conversion whatsoever results.
Elapsed time over: 100000000 iterations: 4272.0000000000000


debug off:
Convert from object to int via cast to string then int results.
Elapsed time over: 100000000 iterations: 2293.0000000000000

Convert from string to int results.
Elapsed time over: 100000000 iterations: 1775.0000000000000

Get int value from wrapper object results.
Elapsed time over: 100000000 iterations: 782.00000000000000

No conversion whatsoever results.
Elapsed time over: 100000000 iterations: 256.00000000000000