Markets ended flat after hitting record high on Wednesday. The Sensex hit all-time high during the day but could not sustain gains at closing. The 30-share index ended at 55,944.21, down 14.77 points or 0.03%. The Nifty closed at record high, ending at 16,634.65, up 10.05 points or 0.06%.