Performance MiniStats vs Offical HLStatsX plugin

In this article we compare the SourceMM plugin MiniStats to official HLstatsX Plugin, to discover the performance differences between them. And look very loosely into why.

What versions was used:
MiniStats 2.0.0 - B3
HLstatsX Plugin&Weapon Logging - 2.6

Now we start looking at the different callbacks that the plugins share, and how much time they spend inside one. All the values shown are in microseconds and lower is better.

Player Hurt
This event is called very often, as you can imagine its called whenever someone is injures them self or is hurt by someone else.

As you can see in this graph MiniStats spends a lot less time working on this event, on average it spends 9.6 times less time ( 48 / 5 = 9.6 )

Player Death
This event is called when someone dies.

Here MiniStats is a lot faster, remember that HLstatsX uses 2 plugins, and when you combine the time both you get a very high number. If you combine the time used by both HLstatsX plugins MiniStats is 260 ( 148 + 112)  / 5 = 52X  thats quite insanely much faster.

Player Fire
This event happens very often, every time someone fires their weapon this event is fired.

Here MiniStats is 5.5 times faster ( 39 / 7 = 5.57 ) then the HLStatsX plugin, and again remember that MiniStats does record stats here to be used for real time stats for players.

Why does MiniStats performance so much better?
Its NOT the fault of SourceMod, but rather bad coding in the HLStatsX plugin`s.

Does this provide a full performance overview?
No, this just takes provides some nice graphs on the most used events inside the HLStatsX plugins. But there a lot of events being used that spends CPU time.

So i should install your plugin because HlstatsX plugin is bad?
No, this is just a performance overview, and if your server can handle the increased CPU load or you want one of the features that the HLstatsX plugins have and MiniStats does not you should use the HLstatsX plugins.