Performance Comparison of PHP and JSP as Server-Side Scripting Languages

  • Scott Trent
  • Michiaki Tatsubori
  • Toyotaro Suzumura
  • Akihiko Tozawa
  • Tamiya Onodera
Part of the Lecture Notes in Computer Science book series (LNCS, volume 5346)


The dynamic scripting language PHP has become enormously popular for implementing lightweight web applications, and is widely used as a server-side scripting language for web servers. To contrast the performance of PHP and JSP for this purpose, we used the SPECweb2005 benchmark, which provides three application scenarios implemented in both PHP and JSP. This paper describes and contrasts the results of SPECweb2005 performance benchmark testing performed on different configurations of PHP and JSP using the popular web servers Apache and Lighttpd. Despite the execution overhead of interpretation in PHP engines observed in micro benchmarks, the experimental result of SPECweb2005 benchmark yields valuable performance data for web server implementers. The efficiency of scripting language runtimes still matters for the end-to-end performance. However, once carefully architected and tuned, the language runtime is less of a bottleneck than the web server performance itself.


PHP JSP SPECweb Benchmarking Web Server 


  1. 1.
    Apache Software Foundation (2008),
  2. 2.
    Bergsten, H.: Java Server Pages. O’Reilly, Sebastopol (2003)Google Scholar
  3. 3.
    Cecchet, E., Chanda, A., Elnikety, S., Marguerite, J., Zwaenepoel, W.: Performance Comparison of Middleware Architectures for Generating Dynamic Web Content. In: 4th ACM/IFIP/USENIX International Middleware Conference (2003)Google Scholar
  4. 4.
    Chopra, V., Galbraith, B., et al.: Professional Apache Tomcat (2003) ISBN 0-764-5372-5Google Scholar
  5. 5.
  6. 6.
    Johnson, S., Huizenga, G., Pulavarty, B.: Performance Tuning for Linux Servers. IBM Press (2005) ISBN 0-131-44753-XGoogle Scholar
  7. 7.
    Lecky-Thompson, E., Eide-Goodman, H., Nowicki, S., Cove, A.: Professional PHP5. Wrox Press (2005) ISBN 0-764-57282-2Google Scholar
  8. 8.
    Petrini, F., Kerbyson, D., Pakin, S.: The case of the Missing Supercomputer Performance: Achieving Optimal Performance on the 8,192 Processors of ASCI Q. In: Proceedings of IEEE/ACM SC (2004)Google Scholar
  9. 9.
    PHP Group (2008),
  10. 10.
    Ramana, U., Prabhakar, T.: Some Experiments with the Performance of LAMP Architecture. In: Proceedings of the 2005 Fifth International Conference on Computer and Information Technology (2005)Google Scholar
  11. 11.
    Security Space (2007),
  12. 12.
    Standard Performance Evaluation Corporation (2008),
  13. 13.
    Titchkosky, L., Arlitt, M., Williamson, C.: A Performance Comparison of Dynamic Web Technologies. In: 11th IEEE/ACM International Symposium on Modeling, Analysis and Simulation of Computer Telecommunications Systems (2003)Google Scholar
  14. 14.
    Wainwright, P.: Professional Apache 2.0 (2002) ISBN 1-861-00822-1Google Scholar
  15. 15.
    Wu, A.W., Wang, H., Wilkins, D.: Performance Comparison of Alternative Solutions For Web-To-Database Applications. In: Proceedings of the Southern Conference on Computing (2000)Google Scholar
  16. 16.
    Garcia, D.F., Garcia, J.: TPC-W E-Commerce Benchmark Evaluation. IEEE Computer 36(2), 52–48 (2003)Google Scholar
  17. 17.
    Amza, C., et al.: Specification and implementation of dynamic Web site benchmarks. In: Proceedings of the 5th IEEE Workshop on Workload Characterization (2002)Google Scholar
  18. 18.
    Warner, S., Worley, J.: SPECweb2005 in the Real World: Using Internet Information Server (IIS) and PHP. In: 2008 SPEC Benchmark Workshop (2008)Google Scholar
  19. 19.
    Stancevic, D.: Zero Copy I: User-Mode Perspective. Linux Journal 3(105) (2003)Google Scholar

Copyright information

© IFIP International Federation for Information Processing 2008

Authors and Affiliations

  • Scott Trent
    • 1
  • Michiaki Tatsubori
    • 1
  • Toyotaro Suzumura
    • 1
  • Akihiko Tozawa
    • 1
  • Tamiya Onodera
    • 1
  1. 1.IBM Tokyo Research LaboratoryJapan

Personalised recommendations