binary1248/SFGUI — comment on commit 4929df2ae58abf692d14407280d568008efee988
File:  line 0
By TankOs:

I did run a benchmark for std::shared_ptr vs. sfg::SharedPtr and std::unique_ptr vs. raw pointers. These are the results:

```
Creating 1000000 shared pointers...
STL: 157
SFG: 130
---
Accessing a shared pointer 5000000 times...
STL: 24
SFG: 11
---
Creating & destroying 1000000 raw/unique pointers...
STL: 117
SFG: 38
---
Accessing a raw/unique pointer 5000000 times...
STL: 77
SFG: 10
```

Own implementations are faster, but we're in the **nano seconds** range when calculating it down to one call. If you asked me, the benefit is ~zero.