CH3SNAS Talk:Tutorials/php

From NAS-Tweaks

Jump to: navigation, search
  • I would like to add some material (in the Notes section) on performance. Especially relevant on a smaller CPU with less RAM. Add a benchmark? There are probably 3 numbers a reader should care about:
    • how much slower is the CPU on the CH3SNAS than say a PC.
      • I think this should be compared in pages/second. ab (Apache benchmark) could be used for this. Uli 12:28, 2 November 2008 (UTC)
    • how much slower is a PHP script than equivalent native code
      • I can't answer that, but it has to be processed every time, so it will be a lot slower. I myself use eaccelerator on my Webservers to cache the opcode of php-pages, which reduces the impact a little. Perhaps this can be compiled on the CH3SNAS to reduce the time to process a page. I think there is simply no alternative to using PHP ;) Uli 12:28, 2 November 2008 (UTC)
    • any figure to indicate how long it takes to launch the server (from virtual memory? when the NAS is sleeping) PeterH 11:40, 2 November 2008 (UTC)
      • First Load of a PHP-Site loads the FastCGI-Server of PHP into the memory, which may take a moment. This "Server" will stay in memory until lighttpd is shut down => will be very quick. Uli 12:28, 2 November 2008 (UTC)
Personal tools
Advertisement