The ASX set a new benchmark on Thursday, reaching an all-time high as gains in the healthcare and finance sectors.