This paper presents a performance analysis of a self-organization based clustering scheme for Flying Ad-Hoc Networks (FANETs) using the K-means and Firefly optimization algorithms. It discusses the dynamic topology challenges in UAV networks and proposes an efficient cluster formation and routing mechanism that enhances communication reliability and reduces energy consumption. Experimental results demonstrate that the Firefly optimization significantly improves cluster building time, cluster lifetime, and delivery success probability compared to the K-means algorithm alone.