What is more eco-friendly, a jar made from recycled PET or glass?

When considering a more green option for a jar to hold mayonnaise, is rPET more eco-friendly or glass?