Comparison the processing speed between PHP and ASP.NET
THE PROPOSED METHOD Comparison processing speed between PHP and ASP.NET was done by establish three servers on VMWare ESXi Version 5.5.0. These three servers was established base on the same basic environment, OS was Windows Server 2008 R2 64 Bit, RAM 4GB and database oracle 11g R2 64 Bit. But on server one was installed web server IIS 7.5 and PHP 5.3.28, hereinafter referred to as “Server PHP-IIS”, Server two was installed webserver IIS 7.5 and ASP.NET 4, hereinafter referred to as “Server ASP”. Server three was installed webserver Apache 2.2.8 and PHP 5.3.28, hereinafter referred to as “Server PHP-Apache”. For client was Laptop Dell Inspiron 15R with Windows 8.1 Enterprise 64 Bit, RAM 8.00 GB, Firefox Version 39.0, ADD-ONS lori (Life-of-request info) Extensions  and ADD-ONS Status-4-Evar  for Firefox can show status bar. To evaluation the processing speed was done by development webpage with the same of algorithms on ASP.NET and PHP and experiment on three servers above.
EXPERIMENTS To evaluation processing speed, experimented was divided to five difference cases: Load static webpage, Algorithms processing, Managing database, Upload file and Read/write file. Each case was experimented with three kinds of servers as mention in above. On experiment each case was create as web page on both PHP (for server PHP-IIS and PHP-Apache) and ASP.NET (for server ASP.NET), and test by using browser to open web page and run each case 10 rounds on each server respectively to find average time. Each case of experiment had information as below: A. Load static web page Experiment was conducted by create web page (with all code was only HTML), the web page was the same information for test on three servers. Information of web page was included imagefile.jpg size 1.96 MB, audio song.mp3 size 4,2MB, flash Incredible.flv size 12.5MB, video MP4 videofile.m4a 15.4MB and PDF pdffile.pdf size 568 KB. B. Algorithms processing Experiment was conduct base on three kinds (Tower of Hanoi, sum big number and sorting 5,000 values) to the purpose of this case to compare processing speed by run complicate thing. 1) Tower of Hanoi conducted by created web page with PHP and also ASP.NET on both had the same algorithms and to slove Tower of Hanoi with 20 discs. 2) Sum big number, this is sum two big number that a number could not store in a variable, each a big number had 50,000 digits. To operation of this we changed a big number to character, a digit to a character and store a big number as set of characters. After that make function to operated sum each digit from lastest of set character and show rerult on brower after finished. 3) Sorting number 5,000 values was conducted by create web page with PHP and ASP.NET to automatic random number from 0 to 5,000 and after that was sort from small to big by number using bubble sort. C. Managing database Experiment was conducted base on three command in SQL (Truncate, select, insert) as below 1) Delete data from database by truncate command. it was conducted with create web page on both PHP and ASP.net to delete data 10,000 records from table in oracle 11g database and show message after completed. 2) Insert data to database was conducted by create web page on both PHP and ASP.net to insert data 10,000 records to table in oracle 11g database and show message after completed. 3) Retrieve data from database was conduct by create web page on both PHP and ASP.net to select data 10,000 records from table in oracle 11g database and show data on web page after completed. D. Upload file Experiment was conducted by create web page on both PHP and ASP.net to upload file to server. The file upload there are file.MP3 size 6,9 MB, file.MP4 size 64,9 MB and file.MP4 149 MB each size was experiment with 10 times. E. Read/ write data to external file Experiment was conducted by create web page on both PHP and ASP.net to read data from file there are 1,000,000 rows and after that wrote data got from process read back to other file in server.
CONCLUSION Web applications play an important role for many organizations and many business activities in the modern world. Web applications there are several techniques and software tool that are used to development of various web applications. To choose the right technology for development web application for organization or business is the one of most importance. ASP.NET is the one of good choice to choose for organization that use Window OS, because feature of processing speed is fast. From our experiment we can conclusion as ASP.NET is best for web page to show information, it is had fast speed of page load than PHP 1.81 times, it is best for web application need high processing speed and it is Read/write file ASP.NET better than PHP 3.37 times. However from our experiment ASP.NET had a weak point is data type changing, from experiment with sum big number by change number to string and string to number PHP faster than ASP.NET 6.8 times. For web application that manage of database PHP is best than ASP.NET 1.45 times. Load file PHP is faster ASP.NET 1.17 times.