I found various sources that there should be little to no performance difference with the debug and release version of Visual Studio.
I am using Visual Studio 2015 and wrote a event driven state machine framework. After I did the first performance tests a was bumped because the framework made only about 13.000 state switches per second.
But as soon as I compiled it as release version I got 1.5 Million states switches per second. Thats a huge increase for me, but I cant explain where this comes from.
The sad part is, that I cant share my code because it belongs to my company.
But i found out that already the for-loop like this runs much quicker with the release Version.
for (auto i = 0; i < 2000000; i++)
my_machine.PushEvent(event);
Furthermore the memorey usage went down from like 255 MB to 67MB with the release version. The memory gets taken up by two queues.
I hope this gets not marked as duplicate, but I would like to hear some Input about the performance differences.