You would, if you were scrupulous, compile your C program with a C++ compiler to prove absolutely that C cannot be faster than C++, before going on to make the C++ version faster, using features that do not exist in C. .
Your benchmarks demonstrate only that it is possible to write slow code in any language, even a fast one.
It would be easy enough to make the C programs equally slow, still proving nothing about either language.
Your benchmarks demonstrate only that it is possible to write slow code in any language, even a fast one.
It would be easy enough to make the C programs equally slow, still proving nothing about either language.