RE: [PHP] Speed Issues PHP vs ASP.net
-Original Message- Recently i read this blog post about speed issues comparing PHP with ASP.net, please, read that and comment what you think about it: http://misfitgeek.com/blog/aspnet/php-versus-asp-net-ndash-windows-versu s-linux-ndash-who-rsquo-s-the-fastest/ The big deal is: I don't know if this bechmark is true or false but, what are doing the PHP team about speed issues? Results like that maybe results like this can tarnish the image of language. So, what do you think about it? -- My main issue with the tests is this: ASP.NET (C#) is psuedo-byte-code compiled and cached prior to execution. This is a huge boost to performance. The tests should be re-done with something like IonCube compiled PHP. I think ASP.NET would still win, though. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Speed Issues PHP vs ASP.net
On Tue, Aug 25, 2009 at 10:37 AM, kyle.smithkyle.sm...@inforonics.com wrote: -Original Message- Recently i read this blog post about speed issues comparing PHP with ASP.net, please, read that and comment what you think about it: http://misfitgeek.com/blog/aspnet/php-versus-asp-net-ndash-windows-versu s-linux-ndash-who-rsquo-s-the-fastest/ The big deal is: I don't know if this bechmark is true or false but, what are doing the PHP team about speed issues? Results like that maybe results like this can tarnish the image of language. So, what do you think about it? -- My main issue with the tests is this: ASP.NET (C#) is psuedo-byte-code compiled and cached prior to execution. This is a huge boost to performance. The tests should be re-done with something like IonCube compiled PHP. I think ASP.NET would still win, though. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php The one big thing missed in the article is portability. While running ASP.NET under Mono on Linux is possible, its not likely to be as workable as taking php to almost any other environment. And really,if you want to learn c# then just go learn java and make it better. -- Bastien Cat, the other other white meat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Speed issues.
I haven't noticed ANY performance hit by skipping in and out of PHP and HTML when it suits me. I imagine there *might* be a slight performance hit if you were building a LOT of table information with print or echo or printf, but the general answer to your question is usually whatever suits you better. You could run some comparison tests with a microtimer to see what happens... I doubt on a 50-100K HTML page that you could notice the difference, unless the site or server got S**TLOADS of hits. Justin French on 28/07/02 5:56 PM, Yves Vrancken ([EMAIL PROTECTED]) wrote: Greetings, I am new to PHP and trying to implement some PHP and MySQL on my website. My website has a lot of tables and inside some of those tables, I want to display information that is drawn out of the MySQL database using PHP. I was wondering what goes faster: (A). Building the whole page normally up in HTML, doing the usual table td and so forth, and then inside the td calling up the PHP in order to display the information. For example: td ?php .. ? /td (B). Doing everything in the PHP document, also the 'building' of the tables, and then including the PHP script in the main page. For example using printf(trtd and so forth. Thanks, Yves Vrancken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Speed issues.
I didn't expect it to make too much of a difference. Thank you for your answer. Yves Vrancken Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I haven't noticed ANY performance hit by skipping in and out of PHP and HTML when it suits me. I imagine there *might* be a slight performance hit if you were building a LOT of table information with print or echo or printf, but the general answer to your question is usually whatever suits you better. You could run some comparison tests with a microtimer to see what happens... I doubt on a 50-100K HTML page that you could notice the difference, unless the site or server got S**TLOADS of hits. Justin French on 28/07/02 5:56 PM, Yves Vrancken ([EMAIL PROTECTED]) wrote: Greetings, I am new to PHP and trying to implement some PHP and MySQL on my website. My website has a lot of tables and inside some of those tables, I want to display information that is drawn out of the MySQL database using PHP. I was wondering what goes faster: (A). Building the whole page normally up in HTML, doing the usual table td and so forth, and then inside the td calling up the PHP in order to display the information. For example: td ?php .. ? /td (B). Doing everything in the PHP document, also the 'building' of the tables, and then including the PHP script in the main page. For example using printf(trtd and so forth. Thanks, Yves Vrancken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Speed issues.
Hello, You can also find something about your questions on: http://www.php9.com/index.php/section/articles/name/PHP%20Guidelines I had tested out by printing (repeated times): 1) echo 'br'.$k.': hallo '.$string.', dit is hetbr'.\n; 2) echo br$k: hallo $string, dit is hetbr.\n; 3) ?br?=$k?: hallo ?=$string?, dit is hetbr?=\n?? $k=1; $string='test'; I found: The fastest way to print was 3) Second came 1) (no much difference) and the slowest way 2) (about 2 times slower). I haven't tested printf(trtd Best regards, Bas Jobsen Op zondag 28 juli 2002 09:56, schreef Yves Vrancken: Greetings, I am new to PHP and trying to implement some PHP and MySQL on my website. My website has a lot of tables and inside some of those tables, I want to display information that is drawn out of the MySQL database using PHP. I was wondering what goes faster: (A). Building the whole page normally up in HTML, doing the usual table td and so forth, and then inside the td calling up the PHP in order to display the information. For example: td ?php .. ? /td (B). Doing everything in the PHP document, also the 'building' of the tables, and then including the PHP script in the main page. For example using printf(trtd and so forth. Thanks, Yves Vrancken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Speed issues.
I am new to PHP and trying to implement some PHP and MySQL on my website. My website has a lot of tables and inside some of those tables, I want to display information that is drawn out of the MySQL database using PHP. I was wondering what goes faster: (A). Building the whole page normally up in HTML, doing the usual table td and so forth, and then inside the td calling up the PHP in order to display the information. For example: td ?php .. ? /td (B). Doing everything in the PHP document, also the 'building' of the tables, and then including the PHP script in the main page. For example using printf(trtd and so forth. (A) will be faster, generally. Plus it's easier to read and find the PHP snippets in the HTML, than it is to read an entire page of print/echo statements. And it'll generally open neatly in a graphical HTML editor, too. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Speed issues.
Thanks for the help, guys . I appreciate it. And Bas, thanks for that link. Interesting material for a novice PHP-user as myself. Yves Vrancken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php