Closed hrj closed 8 years ago
While 1% to 2% is within the noise of normal JavaScript engine execution, this change makes the bytecode a bit cleaner, so I'm OK with it.
thanks!
While 1% to 2% is within the noise of normal JavaScript engine execution,
Indeed, there is a lot of noise, though I believe I have been getting better at benchmarking these days. I follow this process:
performance
. Other governors dynamically change the frequency of the CPU / move the thread to a different core based on load and temperature. Whereas the performance
governor keeps all cores running at maximum frequency. This reduces the benchmark noise significantly. These are all fine suggestions for experimental evaluation when you are trying to distinguish signal from noise. However, in real settings, where users will be multitasking, etc., 1-2% is absolutely noise. You want any gains to be visible to users in real settings; otherwise, they literally do not matter. As a policy matter, @jvilk is 100% correct: it doesn't make sense to chase after minor gains if they come at the cost of increased code complexity / maintenance costs. Luckily, in this case, it's the opposite. Thanks!
frame
parameter. This change gives a modest speed boost (1% to 2% reduction in compilation usingjavac
).opStack
for clarity.