If you are checked through to Perth (bags and seat), you should be able to stay airside at Sydney. Probably best to check with them, if you're confident they know the answer.
Australia is one of the minority of countries that does not insist on first port clearance on arrival by commercial...