The performance of the LHCf detector