add perf tests for function/method call
perf improvements for spsc queue