Performance Evaluation of CPU and GPU Architectures in Google Colab-Based Parallel Computing Using Execution Time and Speedup

DOI: https://doi.org/10.33650/coreai.v7i1.15758
Authors

(1) * Didik Haryanto   (Universitas Teknokrat Lampung)  
        Indonesia
(2)  Muhamad Nur Hoiri   (Universitas Teknokrat Lampung)  
        Indonesia
(3)  Ahmad Sidiq   (Universitas Teknokrat Lampung)  
        Indonesia
(4)  Amelia Azzahrah   (Universitas Teknokrat Lampung)  
        Indonesia
(5)  Amarudin Amarudin   (Universitas Teknokrat Lampung)  
        Indonesia
(*) Corresponding Author

Abstract


Modern computing demands have driven the use of processing devices capable of handling large workloads quickly and efficiently. The CPU plays an important role as the central controller for general-purpose instructions, whereas the GPU provides parallel-processing capabilities that are better suited to large-scale numerical operations. This study aims to evaluate performance differences between CPU and GPU architectures in Google Colab-based parallel computing. A quantitative experimental method was employed using a matrix multiplication test scenario implemented with the PyTorch library. Tests were performed on five matrix sizes: 500 x 500, 1000 x 1000, 2000 x 2000, 3000 x 3000, and 4000 x 4000. The measured parameters included CPU execution time, GPU execution time, and speedup. The results show that the GPU was not optimal for the small 500 x 500 matrix, with a speedup of 0.47 times. However, for larger matrices, the GPU delivered substantial performance gains, achieving speedups of 23.25 to 27.30 times over the CPU. These findings indicate that GPUs are more effective for large-scale parallel processing.


Keywords

CPU; GPU; Google Colab; komputasi paralel;



Full Text: VIEW PDF



References


W. Stallings, Computer Organization and Architecture: Designing for Performance, 11th ed. Hoboken, NJ, USA: Pearson, 2022.

S. L. Harris and D. M. Harris, Digital Design and Computer Architecture, RISC-V Edition, 1st ed. Cambridge, MA, USA: Morgan Kaufmann, 2021. https://doi.org/10.1109/WCAE53984.2021.9707615

W.-m. W. Hwu, D. B. Kirk, and I. El Hajj, Programming Massively Parallel Processors: A Hands-on Approach, 4th ed. Cambridge, MA, USA: Morgan Kaufmann, 2022.

J. D. Owens, M. Houston, D. Luebke, S. Green, J. E. Stone, and J. C. Phillips, "GPU computing," Proceedings of the IEEE, vol. 96, no. 5, pp. 879-899, 2008, doi: 10.1109/JPROC.2008.917757.https://doi.org/10.1109/JPROC.2008.917757

J. Nickolls, I. Buck, M. Garland, and K. Skadron, "Scalable parallel programming with CUDA," ACM Queue, vol. 6, no. 2, pp. 40-53, 2008, doi: 10.1145/1365490.1365500. https://doi.org/10.1145/1365490.1365500

S. Che, M. Boyer, J. Meng, D. Tarjan, J. W. Sheaffer, S.-H. Lee, and K. Skadron, "A performance study of general-purpose applications on graphics processors using CUDA," Journal of Parallel and Distributed Computing, vol. 68, no. 10, pp. 1370-1380, 2008, https://doi.org/10.1016/j.jpdc.2008.05.014

S. Memeti, L. Li, S. Pllana, J. Kolodziej, and C. Kessler, "Benchmarking OpenCL, OpenACC, OpenMP, and CUDA: Programming productivity, performance, and energy consumption," arXiv preprint arXiv:1704.05316, 2017. https://doi.org/10.1145/3110355.3110356

Adrianta, A. T., Ariessanti, H. D., Setiawati, P., & Ichwani, A. (2025). Rancang Bangun Sistem Pemesanan Berbasis Website Dengan QR Code Menggunakan Metode Waterfall Di Cafe Eau De Coffee. INSERT : Information System and Emerging Technology Journal, 6(1), 50–62. https://doi.org/10.23887/INSERT.V6I1.90898

Ansari, M. Q., & Ansari, M. Q. (2025). Accelerating Matrix Multiplication: A Performance Comparison Between Multi-Core CPU and GPU. http://arxiv.org/abs/2507.19723

Bororing, G. M. G., & Gunawan, F. (2024). Sistem Pemesanan dan Pembayaran Makanan berbasis Web Terintegrasi dengan Application Programming Interface (API). Jurnal Informatika Dan Bisnis, 13(1), 37–48. https://doi.org/10.46806/JIB.V13I1.1147

Che, S., Boyer, M., Meng, J., Tarjan, D., Sheaffer, J. W., & Skadron, K. (2020). A performance study of general-purpose applications on graphics processors using CUDA. Journal of Parallel and Distributed Computing, 68(10), 1370–1380. https://doi.org/10.1016/J.JPDC.2008.05.014

Fauziah, L., Firmansyah, A., & Aguswin, A. (2024). Sistem Informasi Sekolah Berbasis Web Menggunakan Metode Waterfall. Studi Kasus: SMPI Al-Hudri Walibrah. REMIK: Riset Dan E-Jurnal Manajemen Informatika Komputer, 8(1), 274–285.

Hakim, A. B., Hermawan, F., Muhammad, M., & Firmansyarif, R. (2024). Rancang Bangun Aplikasi Penjualan Ayam Geprek R3 Berbasis Web dengan Metode Waterfall. Jurnal Teknologi Informatika Dan Komputer, 10(1), 147–159. https://doi.org/10.37012/JTIK.V10I1.2005

Harris, S. L., & Harris, D. (2021). Digital Design and RISC-V Computer Architecture Textbook. 2021 ACM/IEEE Workshop on Computer Architecture Education, WCAE 2021. https://doi.org/10.1109/WCAE53984.2021.9707615

Karimi, K., Dickson, N. G., & Hamze, F. (2022). A Performance Comparison of CUDA and OpenCL. http://arxiv.org/abs/1005.2581

Memeti, S., Li, L., Pllana, S., Kołodziej, J., & Kessler, C. (2021). Benchmarking OpenCL, OpenACC, OpenMP, and CUDA: Programming Productivity, Performance, and Energy Consumption. ARMS-CC 2021 - Proceedings of the 2021 Workshop on Adaptive Resource Management and Scheduling for Cloud Computing, Co-Located with PODC 2021, 1–6. https://doi.org/10.1145/3110355.3110356

Owens, J. D., Houston, M., Luebke, D., Green, S., Stone, J. E., & Phillips, J. C. (2020). GPU computing. Proceedings of the IEEE, 96(5), 879–899. https://doi.org/10.1109/JPROC.2008.917757

Torres, L. A., H, C. J. B., & Denneulin, Y. (2024). Evaluation of computational and energy performance in matrix multiplication algorithms on CPU and GPU using MKL, cuBLAS and SYCL. http://arxiv.org/abs/2405.17322


Dimensions, PlumX, and Google Scholar Metrics

10.33650/coreai.v7i1.15758


Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Didik Haryanto, Muhamad Nur Hoiri, Ahmad Sidiq, Amelia Azzahrah, Amarudin Amarudin

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.


Creative Commons License
 
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

COREAI: Jurnal Kecerdasan Buatan, Komputasi dan Teknologi Informasi

Published by Technic Faculty of Nurul Jadid University, Probolinggo, East Java, Indonesia.