3 ms·
In this case, Python's code (opening and loading the content of a file) operates almost fully within its C runtime. The C components initiate the system call a
by Attummm 3y ago
In this case, Python's code (opening and loading the content of a file) operates almost fully within its C runtime.
The C components initiate the system call and manage the file pointer, which loads the data from the disk into a pyobj string.
Therefore, it isn't so much Python itself that is being tested, but rather python underlying C runtime.
- kbenson 3y agoYep, and the next logical question when both implementations are for the most part bare metal (compiled and low-level), is why is there a large difference? Is it a matter of implementation/algorithm, inefficiency, or a bug somewhere? In this case, that search turned up a hardware issue that should be addressed, which is why it's so useful to examine these things.