A boy constructed two figures, an equilateral triangle and a semicircle such that the side of an equilateral triangle and the radius of the semicircle are equal. What is the ratio of perimeter of the equilateral triangle to the perimeter of the semicircle?