Oktafianto, Mukhammad Afan and Buce Trias Hanggara, S.Kom., M.Kom. and Muhammad Aminul Akbar, S.Kom., M.T (2024) Analisis Perbandingan Performa Framework Web Server Nest JS dan Hapi JS Berbasis REST API. Sarjana thesis, Universitas Brawijaya.
Abstract
Pemilihan suatu framework dalam pembangunan sebuah web service sangatlah penting, dengan menggunakan framework dapat memudahkan pengembang untuk memudahkan perancangan, pembacaan kode, pengujian, dan juga pemeliharaan web service. Javascript merupakan salah satu bahasa pemrograman populer. Framework Javascript yang populer digunakan untuk layanan web service adalah Hapi JS dan juga Nest JS. Hapi JS dengan kesederhanaan struktur dan siklus proses nya, dan juga Nest JS dengan abstraksi dan modularitas yang baik. Penelitian ini bertujuan untuk mengetahui framework mana yang memiliki performa lebih baik antara Hapi JS dan Nest JS. Aspek yang diuji meliputi rata – rata penggunaan CPU, penggunaan RAM, waktu respon, dan juga failed request. Pengujian menggunakan metode load testing dengan memanfaatkan perangkat lunak k6.io, grafana, dan juga Prometheus. Pengujian dilakukan dengan mengimplementasikan kode program ke dalam dua versi framework yang menghasilkan respon identik dengan dua layanan. Hasil pengujian menunjukkan bahwa Hapi JS unggul dalam segala aspek yang diujikan. Hasil pengujian signifikansi data menggunakan metode Wilcoxon Signed-Rank Test menunjukkan terdapat perbedaan yang signifikan pada pengujian. Hasil dari pengujian adalah Hapi JS mendapatkan hasil rata – rata 72,47 %, sedangkan Nest JS mendapatkan rata –rata 61,5 % dalam penggunakan CPU, hasil rata – rata penggunaan RAM Hapi JS mendapatkan rata – rata 51,278 %, sedangkan Nest JS mendapatkan rata – rata 59,716 %. Pada pengujian response time Hapi JS mendapatkan rata - rata 354,28 ms, sedangkan Nest JS mendapatkan rata – rata 796,28 ms. Pada pengujian failed request Hapi JS mendapatkan persentase rata - rata 14,8 %, sedangkan Nest JS mendapatkan persentase rata – rata 30,18 %. Penelitian ini memberikan informasi perbandingan performa dari kedua framework yang dibandingkan sehingga dapat digunakan sebagai referensi pengembang ketika memilih framework yang sesuai.
English Abstract
The selection of a framework in the development of a web service is very important, using a framework can make it easier for developers to facilitate the design, reading of code, testing, and maintenance of web services. Javascript is one of the popular programming languages. Javascript frameworks that are popularly used for web services are Hapi JS and Nest JS. Hapi JS with its simplicity of structure and process cycle, and also Nest JS with good abstraction and modularity. This research aims to find out which framework has better performance between Hapi JS and Nest JS. The aspects tested include average CPU usage, RAM usage, response time, and also failed requests. Testing uses the load testing method by utilizing k6.io, graphana, and Prometheus software. Testing is done by implementing program code into two versions of the framework that produce identical responses with two services. The test results show that Hapi JS excels in all aspects tested. The results of data significance testing using the Wilcoxon Signed-Rank Test method show that there are significant differences in the test. The results of the test are Hapi JS gets an average result of 72.47%, while Nest JS gets an average of 61.5% in CPU usage, the average result of RAM usage Hapi JS gets an average of 51.278%, while Nest JS gets an average of 59.716%. In response time testing Hapi JS gets an average of 354.28 ms, while Nest JS gets an average of 796.28 ms. In testing failed requests Hapi JS gets an average percentage of 14.8%, while Nest JS gets an average percentage of 30.18%. This research provides information on the performance comparison of the two frameworks being compared so that it can be used as a reference for developers when choosing the appropriate framework.
Item Type: | Thesis (Sarjana) |
---|---|
Identification Number: | 052415 |
Uncontrolled Keywords: | Performa, Hapi JS, Nest JS, Load Testing, K6.io, Javascript |
Divisions: | Fakultas Ilmu Komputer > Teknologi Informasi |
Depositing User: | S Sucipto |
Date Deposited: | 13 Feb 2025 02:01 |
Last Modified: | 13 Feb 2025 02:01 |
URI: | http://repository.ub.ac.id/id/eprint/236557 |
![]() |
Text (DALAM MASA EMBARGO)
Mukhammad Afan Oktafianto.pdf Restricted to Registered users only Download (4MB) |
Actions (login required)
![]() |
View Item |