GPT-3.5 (davinci-002) (OpenAI) and U-PaLM (540B) (Google) are both frontier AI models. GPT-3.5 (davinci-002) was published in March 2022 and U-PaLM (540B) in October 2022.
GPT-3.5 (davinci-002) was trained on 2.6×10²⁴ FLOP, essentially the same compute as U-PaLM (540B) at 2.5×10²⁴ FLOP. Training compute is the closest available proxy for how much was invested in a model, though it says nothing on its own about how well that compute was spent.
These two models share no benchmark on which both have been scored, so no direct performance comparison is possible here. The specification table below is a comparison of inputs, not of results.