Simple performance comparison c++