This research evaluates the performance of various supervised machine learning algorithms for an intrusion detection system (IDS) using two IoT-specific datasets, N-BAIOT and IoTID20. The study emphasizes the significance of selecting diverse base classifiers for ensemble learning and finds that algorithms like adaptive boosting and gradient boosting achieve a favorable balance between performance metrics and classification time. Statistical tests, including Friedman and Dunn's tests, are applied to highlight significant performance differences among classifiers, ultimately recommending effective approaches for IDS development.