Will PHP script running on top of Apache be faster than C# stand alone program doing same thing (same counting algorithm)? -


I mean that PHP scripts are oriented to many users at the same time for the first time.

So 1000 requests that came (relatively), can be processed faster than C # at the same time. Algorithms are displayed when looping 1000 programs on the net programs?

So we input the same data, we do the same algorithm, which are written in the same way (the respect of language differences), the same data output (to be relatively equal to it File to save it)

Algorithm:

  • Open file (each time in different sizes (1 to 500 MB) (FLV video files)) < / Li>
  • Binary mode when reading information about container and its components and other such items Read and trace
  • Save the information detected in the file

Which of the algorithms will be 1000 times as fast or 1000000 in the performance, in that case ( If possible, will one be exalted second?

(2 Intel Xen 2600 MHz processor (each with 4 cores in it))

Maybe

If C # program is operating in the loop, it is only doing one at a time (unless you are using a new parallel extension that is in .NET 4 is).

With PHP scripts it will execute them in parallel, so it depends on how many CPUs you have and which is fully scripting (this CPU Bound, IO Bound, etc.) based on Can be fast.


Comments