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

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

My results at my work computer: (Pentium 4 2.53Ghz with 512 Mbytes of RAM)

DEBUG OFF:
Convert from object to int via cast to string then int results.

Elapsed time over: 100000000 iterations: 2935.0000000000000




Convert from string to int results.

Elapsed time over: 100000000 iterations: 2697.0000000000000




Get int value from wrapper object results.

Elapsed time over: 100000000 iterations: 1074.0000000000000




No conversion whatsoever results.

Elapsed time over: 100000000 iterations: 405.00000000000000



DEBUG ON

Convert from object to int via cast to string then int results.

Elapsed time over: 100000000 iterations: 12890.000000000000




Convert from string to int results.

Elapsed time over: 100000000 iterations: 12177.000000000000




Get int value from wrapper object results.

Elapsed time over: 100000000 iterations: 11461.000000000000




No conversion whatsoever results.

Elapsed time over: 100000000 iterations: 10365.000000000000