Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts

    Intresting Echo v. Print speed times...

    I've got http://geoffers.uni.cc/echovprint/index.php to test times...

    My testing shows that when your doing less than c. 10000 echos/prints echo is faster, but when your doing more print is faster...

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    intresting.

    but i entered "10000000000000000000000000000" and echo was still faster
    --------------------------------------------------------
    Echo: 16.33230615 seconds
    Print: 16.36591411 seconds
    --------------------------------------------------------

    to get a real accurate picture, you need to run this test several times at different periods on different servers.
    you could set up a cron that runs the code every 15 minutes or so with different number of trials, and then write the number + executiontime and servername to a db or textfile + ask a few guys around here to run the same code on different servers. i'd be intrested in knowing the full results of these two commands + there are a few other alternatives i've wondered what the most performant alternative is (a regex or two string-functions, using arrays or if-then-else etc)
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #3
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,108
    Thanks
    11
    Thanked 101 Times in 99 Posts
    the test results seem erratic , can you post the source or have a view-source link ?
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #4
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    raf: I've limited the number you can do anyway, so it was only 100000 as to limit server resources used. As for testing on different servers, I'll do that later on... Gonna do some more testing on my webhost's server first. Maybe rewrite the code a bit, that sorta stuff...

    firepages: Gonna change some stuff, so, later...


    Not changed anything after all, but, I'm about to make it dump the results to a MySQL database...
    Last edited by gsnedders; 09-27-2004 at 07:59 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •