Tuesday, February 01, 2011

Followup on .Net Collection numbers - release build with code "pre-JITed"

Just a quick release build update:

BaselineAdd     of size 1000    took 2893 ticks
BaselineAdd     of size 10000   took 60649 ticks
BaselineAdd     of size 100000  took 317393 ticks

ListAdd of size 1000    took 3192 ticks
ListAdd of size 10000   took 33153 ticks
ListAdd of size 100000  took 637581 ticks

PreSizedListAdd of size 1000    took 2917 ticks
PreSizedListAdd of size 10000   took 52575 ticks
PreSizedListAdd of size 100000  took 655949 ticks

WronglyPreSizedListAdd  of size 100000  took 631083 ticks
VeryWronglyPreSizedListAdd      of size 100000  took 627913 ticks

LinkedListAdd   of size 1000    took 3496 ticks
LinkedListAdd   of size 10000   took 53249 ticks
LinkedListAdd   of size 100000  took 660501 ticks

ListRemoveByIndex       of size 1000    took 189278 ticks
ListRemoveByObject      of size 1000    took 3552635 ticks

The BaselineAdd can show some interesting effects - because it doesn't actually store the TestObject references it can be quite slow - I think because Garbage Collection can kick in.

No comments:

Post a Comment