Indeed -- putting all that test code in a proc make differences disappear! I am aware of performance problems of code outside of procs, but I really had not thought that that was the problem in this case. And I had not assumed that it makes 30 ns difference for a proc call.
I think in future I really should avoid global code even for small tests.
