Analisis Kinerja Dual-Core ESP32 dalam Eksekusi Algoritma Bubble Sort, Selection Sort, dan Insertion Sort untuk Mengukur Kecepatan Komputasi pada Setiap Core

Authors

  • Bhima Satria Rizki Sugiono Universitas Pawiyatan Daha
  • Diky Djafar Sidik President University

DOI:

https://doi.org/10.55606/juisik.v6i2.2324

Keywords:

Dual-Core, Embedded Systems, ESP32, Execution Time, FreeRTOS

Abstract

This study aims to analyze the computational performance of the dual-core ESP32-WROOM-32 in executing three simple sorting algorithms: Bubble Sort, Selection Sort, and Insertion Sort. Testing was conducted by assigning tasks to Core 0 and Core 1 using the FreeRTOS mechanism and measuring execution time using the micros() function in the Arduino-ESP32 environment. The test dataset consisted of a 10,000-element array with random values in the range of 1 to 100. The test results show that Core 0 achieved a shorter average execution time compared to Core 1 for all algorithms. The average execution time for Core 0 was in the range of 7305.90–7307.08 µs, while Core 1 was in the range of 14328.70–14330.23 µs. The average execution time difference between the two cores ranged from 7021.62 to 7024.26 µs. However, this difference must be interpreted while considering the scheduling characteristics of FreeRTOS, the use of core affinity, interrupts, and the overhead of the timing measurement function. The results of this study provide an initial insight into the computational behavior of the ESP32 during the execution of C++-based sorting algorithms and can serve as a basis for optimizing task distribution in embedded system applications.

References

Arduino. (2025). micros(). In Arduino Language Reference. https://reference.arduino.cc/

Arm, J., Baštán, O., Mihálik, O., & Bradáč, Z. (2022). Measuring the performance of FreeRTOS on ESP32 multi-core. IFAC-PapersOnLine, 55(4), 292–297. https://doi.org/10.1016/j.ifacol.2022.06.048

Budiharto, W., & Rahmani, S. (2022). Pemrograman sistem tertanam berbasis ESP32 dan FreeRTOS. Andi Offset.

Cormen, T. H., Leiserson, C. E., Rivest, R. L., & Stein, C. (2009). Introduction to algorithms (3rd ed.). MIT Press.

Espressif Systems. (2022). ESP-IDF FreeRTOS (SMP) - ESP32. In ESP-IDF Programming Guide v5.0. Espressif Systems.

Espressif Systems. (2025). ESP32-WROOM-32 datasheet (Version 3.6). Espressif Systems.

Espressif Systems. (2026). FreeRTOS (IDF) - ESP32. In ESP-IDF Programming Guide v6.0.1. Espressif Systems.

Foltýnek, P., Babiuch, M., & Šuránek, P. (2019). Measurement and data processing from Internet of Things modules by dual-core application using ESP32 board. Measurement and Control, 52(7–8), 970–984. https://doi.org/10.1177/0020294019857748

FreeRTOS. (n.d.). xTaskCreate. In FreeRTOS Kernel API Reference. Amazon Web Services.

Golonka, J., & Krużel, F. (2026). Empirical evaluation of unoptimized sorting algorithms on 8-bit AVR Arduino microcontrollers. Sensors, 26(1), 214. https://doi.org/10.3390/s26010214

Guthaus, M. R., Ringenberg, J. S., Ernst, D., Austin, T. M., Mudge, T., & Brown, R. B. (2001). MiBench: A free, commercially representative embedded benchmark suite. Proceedings of the IEEE International Workshop on Workload Characterization, 3–14. https://doi.org/10.1109/WWC.2001.990739

Haryanto, A., & Sanjaya, M. R. (2024). Analisis perbandingan efisiensi waktu algoritma sorting (Bubble, Selection, dan Insertion Sort) pada pemrosesan data linier. Jurnal Ilmiah Komputasi dan Informatika, 13(2), 88–97.

Kurniawan, R., & Saputra, D. (2025). Implementasi komputasi paralel pada arsitektur microcontroller dual-core untuk pengolahan data sensor. Jurnal Teknologi Sistem Tertanam dan Robotika, 6(1), 12–23.

Maarif, V., Nurahmadi, A., & Setiawan, H. (2023). Pengukuran execution time dan penggunaan memori pada mikrokontroler berbasis arsitektur Xtensa LX6. Jurnal Teknik Elektro dan Sistem Komputer, 9(3), 145–154.

Plauska, I., Liutkevičius, A., & Janavičiūtė, A. (2023). Performance evaluation of C/C++, MicroPython, Rust and TinyGo programming languages on ESP32 microcontroller. Electronics, 12(1), 143. https://doi.org/10.3390/electronics12010143

Pratama, I. G. A., & Sasmita, G. M. A. (2024). Komparasi performa eksekusi algoritma komputasi pada core primer dan sekunder sistem tertanam ESP32. Jurnal Elektronika dan Telekomunikasi, 24(2), 101–110.

Sedgewick, R., & Wayne, K. (2011). Algorithms (4th ed.). Addison-Wesley.

Sitorus, L. (2021). Algoritma dan struktur data dengan pemrograman C/C++. Penerbit Alfabeta.

Wicaksono, M. F. (2023). Optimalisasi multithreading pada ESP32 menggunakan fitur xTaskCreatePinnedToCore. Jurnal Komputer dan Teknologi Informasi, 8(1), 34–43.

(Guthaus & al., 2001)

Downloads

Published

2026-06-23

How to Cite

Bhima Satria Rizki Sugiono, & Diky Djafar Sidik. (2026). Analisis Kinerja Dual-Core ESP32 dalam Eksekusi Algoritma Bubble Sort, Selection Sort, dan Insertion Sort untuk Mengukur Kecepatan Komputasi pada Setiap Core. Jurnal Ilmiah Sistem Informasi Dan Ilmu Komputer, 6(2), 23–35. https://doi.org/10.55606/juisik.v6i2.2324

Similar Articles

<< < 3 4 5 6 7 8 9 10 11 12 > >> 

You may also start an advanced similarity search for this article.