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

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Intel Core 2 Duo E6600 (2.4GHz), latest MinGW

Debug Off:

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


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


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


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



Debug On:

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


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


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


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