//start timer console.time(); //your code //example: let a = 1000 / 90; let b = a%(100/90*198) ^ 89 >> 1 << 2; //stop timer var timeTakenForCodeToRun = console.timeEnd();