I made an algorithm them I wrote it in the following ones programming languages: C, C#, Java, Python and binary Python (Generated with Py2exe). Them it executes comparing the performance. These they’re the results.
| Languages |
CPU Time [s] |
Peak privates bytes [k] |
Virtual size [k] |
Peak Working memory [k] |
| C |
00,250 |
00,320 |
008,716 |
1,276 |
| C# |
00,484 |
07,828 |
077,244 |
5,444 |
| Java |
00,437 |
27,784 |
209,464 |
8,460 |
| Python |
07,718 |
01,896 |
026,040 |
3,800 |
| B. Python |
03,593 |
01,592 |
027,196 |
3,176 |
Private Bytes: Represents the amount of private virtual memory a process has allocated and is the value that will rise of a process exhibiting a memory leak bug.
CPU Time: Is the time of execution.
Working memory: Is the memory physics of your computer use by the program.
In the table you can see , The languages C is the faster than others languages in Time CPU and used the smaller quantity in working memory, this is logic because is a language of low level. While the language Java used the 800 % that use for C.
The Python languages is a “economic” language, because used less than Java and C#. However Python code has a very long time of execution because the output “print” they have a bigger longitude than others languages.

Sources codes