Re:The overhead of abstraction in C/C++ vs. Python/Ruby
by TheLoneWolfling on Saturday October 18, 2014 @08:31PM
(#8476861)
Don't know about MRI. With Python (as it's the reference implementation, I don't see the need to call it by another name) all, IIRC, compilation does with optimization enabled is remove assert and if __debug__: statements. Oh, and docstrings. So yeah... slightly. To put it mildly.
(Note that with this "benchmark", PyPy has (almost) no difference in runtime between the abstracted and non-abstracted versions.)
(Note that with this "benchmark", PyPy has (almost) no difference in runtime between the abstracted and non-abstracted versions.)