Quantcast
Channel: c++ execution time is slower than python's - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by user1196549 for c++ execution time is slower than python's

$
0
0

You are not benchmarking the language, you are benchmarking the OS.

The time it takes to display text (by the windowing system) is longer than the time to prepare the characters (by your code) by orders of magnitude.

You will obtain the same behavior with any language.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>