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

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

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