Today, the design of antenna arrays is very important in providing effective and efficient wireless communication. The purpose of antenna array synthesis is to obtain a radiation pattern with a low side lobe level (SLL) at a desired half power beam width in far-field. The amplitude and position values of the array elements can be optimized to obtain a radiation pattern with suppressed SLLs. In this paper, swarm-based metaheuristic algorithms including particle swarm optimization (PSO), artificial bee colony (ABC), mayfly algorithm (MA) and jellyfish search (JS) are compared to determine the optimal design of linear antenna arrays. Extensive experiments are conducted on designing 10-, 16-, 24- and 32-element linear arrays by determining the amplitude and positions. Experiments are repeated 30 times due to the random nature of swarm-based optimizers, and statistical results show that the performance of the novel algorithms, MA and JS, is better than that of the well-known PSO and ABC methods.