Testing performance of inline code versus instance methods versus class methods