If you look at human databases, it should be about 40-45 moves on average.
If you compare that with latest TCEC, the length rises to some 75-80 moves on average.
Well, if you look closer at TCEC, 1/3 of those moves might be still due to shuffling, either in the middlegame or endgame, but the other 2/3 are definitely due to better understanding of the game and making use of all available resources on the board, as well as tougher defence. So that, objectively, shuffling removed, the average TCEC length should be around 70 moves, still close to double the length of an average human game.
If we assume that with rising quality of computer chess in the future the average length will rise further, it is quite probable that the average length of a chess game by perfect play will reach some 120 moves, or even more.
Well, one of the reasons that human games last shorter is of course the fact that humans get tired at some point, they simply would like to take a break, offer an early draw, etc., but we are not concerned with psychological implications here.
My personal opinion is that, by perfect play, the average chess game should reach some 120 moves and above. So anyone wishing to play a perfect game better prepare to stand the pressure of a 120-mover!

According to you, how long is an average chess game by perfect play?