Add benchmark func for writeLog