hrcak mascot   Srce   HID

Stručni rad

BENCHMARKING PHP MODULES

Alen Šimec ; Zagreb University of Applied Sciences, Zagreb, Croatia
Davor Lozić ; Zagreb University of Applied Sciences, Zagreb, Croatia
Lidija Tepeš Golubić ; Zagreb University of Applied Sciences, Zagreb, Croatia

Puni tekst: engleski, pdf (918 KB) str. 95-100 preuzimanja: 191* citiraj
APA 6th Edition
Šimec, A., Lozić, D. i Tepeš Golubić, L. (2017). BENCHMARKING PHP MODULES. Informatologia, 50 (1-2), 95-100. Preuzeto s https://hrcak.srce.hr/183672
MLA 8th Edition
Šimec, Alen, et al. "BENCHMARKING PHP MODULES." Informatologia, vol. 50, br. 1-2, 2017, str. 95-100. https://hrcak.srce.hr/183672. Citirano 26.02.2021.
Chicago 17th Edition
Šimec, Alen, Davor Lozić i Lidija Tepeš Golubić. "BENCHMARKING PHP MODULES." Informatologia 50, br. 1-2 (2017): 95-100. https://hrcak.srce.hr/183672
Harvard
Šimec, A., Lozić, D., i Tepeš Golubić, L. (2017). 'BENCHMARKING PHP MODULES', Informatologia, 50(1-2), str. 95-100. Preuzeto s: https://hrcak.srce.hr/183672 (Datum pristupa: 26.02.2021.)
Vancouver
Šimec A, Lozić D, Tepeš Golubić L. BENCHMARKING PHP MODULES. Informatologia [Internet]. 2017 [pristupljeno 26.02.2021.];50(1-2):95-100. Dostupno na: https://hrcak.srce.hr/183672
IEEE
A. Šimec, D. Lozić i L. Tepeš Golubić, "BENCHMARKING PHP MODULES", Informatologia, vol.50, br. 1-2, str. 95-100, 2017. [Online]. Dostupno na: https://hrcak.srce.hr/183672. [Citirano: 26.02.2021.]

Sažetak
This paper presents how C programming language could be used for this type of tasks, created as PHP module and then get imported in the PHP language. The purpose of this paper is to show how and when is better to build PHP modules in C, instead of normal PHP functions, and to show negative sides of this type of programming. Profiling, as an important aspect of finding application bottlenecks, is also discussed. Profiling systems like Xdebug, Qcachegrind and Webgrind are also elucidated. This paper contains source code which calculates Fibonacci sequence and multiplies 800x800 matrices written in C and PHP programming languages. Results show that whenever there is a need for a mathematical computation, C will be many times faster and that it is much more cost-effective to write such code in C and create a PHP module.

Ključne riječi
benchmarking; PHP internals; PHP modules; scripting language; server side

Hrčak ID: 183672

URI
https://hrcak.srce.hr/183672

[hrvatski]

Posjeta: 407 *