Python vs C/C++ vs Assembly side-by-side comparison

preview_player
Показать описание
next i will compare fortran and 4chan

a test of the relative performance, not the prime-checking algorithm
Рекомендации по теме
Комментарии
Автор

python is 10 times slower but still useful(I do C/C++, so don't call me a python guy)

ridhamsharma
Автор

C/C++: Very fast, but takes a bit of time to code in.

x86 Assembly: Takes even longer to code but is even faster. This performance advantage becomes more noticeable as the program increases in size and function count.

Python: The Python programming language is designed with simplicity in mind, making it a good choice for introducing children to programming. However, it is not good for creating fully-fledged applications.

AgentCarp
Автор

Your choice is exclusively yours, not anyone's.

Use C, I'll be using Python.

Josimar-Skinner
Автор

Why do does the isPrime function in cpp return an integer its way more clean to return an boolean and memory efficient too?

neitine
visit shbcf.ru