Added code that profile the runtime performance