Added simple performance measurement