added code for measuring benchmakr