Pain is subjective but you can find out how painful it is for you.
Put the noose around your neck, throw the rope over a horizontal beam, hold the other end of the rope with your hands and than bent your knees untill you hang. When you pass out you will fall on the ground which should therefore be very soft. This way you can experiment with the rope thickness and find out how fast you pass out.