Performance Evaluation of Single-Instance and Replicated Deployment of a CPU-Based Libyan Arabic Sentiment Analysis Service

Authors

  • Souad Alharm Department of Internet technologies, Information Technology, Al-Asmariya Islamic University, Zliten, Libya Author

DOI:

https://doi.org/10.65421/jibas.v2i4.270

Keywords:

Arabic transformer models, Libyan dialect, sentiment analysis, CPU-only inference, vertical scaling, horizontal replication, load balancing, tail latency, load testing, performance evaluation

Abstract

Despite the importance of classification Accuracy in evaluating natural language processing models, their operational performance under concurrent workloads emerges as a critical factor when running on a CPU only. This study investigates the real-world performance of a fin-tuned MARBERT-based Libyan dialect sentiment analysis service in terms of throughput, response latency, resource utilization consumption, and failure rates across multiple deployment and load-balancing configurations.

In model evaluation on 423 labeled comments using Three-seed five-fold cross-validation. AraBERT, MARBERT and CAMelBERT achieved average accuracies of (89.2%, 88.3%, and 85.9%; respectively , with on decisive statistical difference between AraBERT and MARBERT). When deploying the fine-tuned MARBERT. Via FastAPI[26]  on a CPU only within a dual-core container, a six-core container or three dual-core replicas behind Nginx[27], performance was roughly equal at 10 concurrent users at approximately 4.6 requests/second for the dual-core one; however, this advantage did not remain consistent in subsequent sessions, as the two larger configurations converged at 100 users around 22 requests/second and absolute throughput varied by up to twofold across sessions while single-container modifications 6workers or 3 workers with 2 threads did not exceed about 13 requests/second. Under Round Robin distribution at 100 users, the average response time of the slowest replica reached between 6 and 35 times that of the fastest, while Little’s Law matched user counts within an error margin not exceeding 6%.

In additional tests at 100 concurrent users, the least connections policy clearly improved load balancing reducing the response time ratio between the slowest and fastest replicas from roughly 38 to nearly 1.2, while increasing throughput by about 10% and cutting 95th percentile p95 response latency  from 11.0 to 4.9s . Nevertheless, these results  remain preliminary supporting indicators rather then conclusive evidence due to limiting experiments to three replications on a single machine.

Downloads

Published

2026-11-21

Issue

Section

Articles

How to Cite

Souad Alharm. (2026). Performance Evaluation of Single-Instance and Replicated Deployment of a CPU-Based Libyan Arabic Sentiment Analysis Service. Journal of Insights in Basic and Applied Sciences, 2(4), 462-473. https://doi.org/10.65421/jibas.v2i4.270

Similar Articles

81-90 of 191

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