1996 · 129 citations · 13 references
ComputingComputer ScienceComputer SystemsComputer ArchitectureOperating SystemsProgramming LanguagesCommunication OverheadPerformance OptimizationDirect Cost AnalysisOverhead AnalysisPerformance Overhead AnalysisSystem Call Overhead
We study the direct cost of virtual function calls in C++ programs, assuming the standard implementation using virtual function tables. We measure this overhead experimentally for a number of large benchmark programs, using a combination of executable inspection and processor simulation. Our results show that the C++ programs measured spend a median of 5.2% of their time and 3.7% of their instructions in dispatch code. For "all virtuals" versions of the programs, the median overhead rises to 13.7% (13% of the instructions). The "thunk" variant of the virtual function table implementation reduces the overhead by a median of 21% relative to the standard implementation. On future processors, these overheads are likely to increase moderately.
13
Efficient implementation of the smalltalk-80 system
L. Peter Deutsch, Allan M. Schiffman · 1984 · 589 citations
James R. Larus, Eric Schnarr · 1995 · 415 citations · Full text
Optimizing dynamically-dispatched calls with run-time type feedback
Urs Hölzle, David Ungar · 1994 · 267 citations · Full text
Reducing indirect function call overhead in C++ programs
Brad Calder, Dirk Grunwald · 1994 · 182 citations