Below you can see the front-view size comparison of the Sony RX10 II and Panasonic GX8. The Panasonic GX8 is 10 mm shorter and 39 mm thinner than the Sony RX10 II but it is also 4 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.