BlackToppStudios / Mezz_Foundation

Foundational Data types that enforce no opinions on how to build games and provide many facilities that complex games need. This largely avoids graphics and physics, but provides tools like the SortedVector, CountedPtr and HashedString classes.
GNU General Public License v3.0
3 stars 0 forks source link

Fix CountedPtrBenchmarks. #62

Open MakoEnergy opened 4 years ago

MakoEnergy commented 4 years ago

Currently, the timings for the CountedPtr is a mess. Particularly on Windows (7 was tested) with it's horribly low precision timer, getting fine grained performance timings can be difficult or impossible.

To make matters worse, in some tests the Internal reference count implementation is beating out raw pointers in performance...which shouldn't be possible. Other times External beats Internal on some platforms. Either the tests should be reconsidered entirely, or in depth bug hunting needs to occur.