1. Unregistered users can now participate on SneakyDave.com. All posts are moderated, which means they won't show up until they're approved.
    Dismiss Notice

Speed Comparison Between Amazon/ebay Parser And Comprehensive Url Parser

Discussion in 'XFStuff' started by SneakyDave, Nov 3, 2014.

  1. SneakyDave

    SneakyDave Solid Mean
    Staff Member

    Joined:
    Dec 8, 2011
    Messages:
    2,860
    Likes Received:
    838
    I did some basic testing between these 2 addons to show how the Comprehensive URL Parser is a little bit faster than the original Amazon/eBay URL Parser.

    These were some extreme examples, using 100 Amazon and 100 eBay links on the page, but it demonstrates that there is a little bit of a difference, even in memory.

    Each test consisted of:
    • localhost machine
    • Stock XenForo 1.4.2
    • No other addons enabled
    • Link Proxy enabled
    • 100 eBay links in a message
    • 100 Amazon links in a message.
    • Both add-ons set to add my eBay campaign ID and Amazon affiliate ID.

    Comprehensive URL Parser, 4 random samples
    Timing: 1.6286 seconds Memory: 10.322 MB DB Queries: 10
    Timing: 1.3622 seconds Memory: 10.322 MB DB Queries: 10
    Timing: 1.5766 seconds Memory: 10.322 MB DB Queries: 10
    Timing: 1.5559 seconds Memory: 10.322 MB DB Queries: 10
    Average timing: 1.530825 seconds

    Amazon/eBay URL Parser, 4 random samples
    Timing: 2.1550 seconds Memory: 10.408 MB DB Queries: 10
    Timing: 1.7712 seconds Memory: 10.408 MB DB Queries: 10
    Timing: 1.7438 seconds Memory: 10.408 MB DB Queries: 10
    Timing: 1.7743 seconds Memory: 10.408 MB DB Queries: 10
    Average timing: 1.861075 seconds

    Timing: 22% less time taken using the Comprehensive URL Parser
    Memory: 88k less memory used the Comprehensive URL Parser

    From those numbers, time to render a page reduce by about 21.5% by using the Comprehensive URL Parser, and 88k of memory was saved.

    Of course, these are extreme examples of a lot of links on a page, so normally, any increase in page speed isn't going to be noticeable if the page only has 2-3 links on it to parse.

    Without either add-on enabled (completely stock XenForo) , I came up with these results:
    Timing: 0.8498 seconds Memory: 10.187 MB DB Queries: 10
    Timing: 0.9845 seconds Memory: 10.187 MB DB Queries: 10
    Timing: 0.8484 seconds Memory: 10.187 MB DB Queries: 10
    Timing: 0.9797 seconds Memory: 10.187 MB DB Queries: 10
    Average timing: .9156 seconds

    So you can see that if you have a page with 200 Amazon and eBay links on it with the Comprehensive URL Parser, you can expect pages to be rendered about .6 seconds slower.

    Real Word Testing
    Just comparing the timing and memory footprint of the add with a more reasonable test of 3 eBay and 3 Amazon links on a page:

    Without Add-on
    Timing: 0.4232 seconds Memory: 10.050 MB DB Queries: 10
    Timing: 0.4391 seconds Memory: 10.050 MB DB Queries: 10
    Timing: 0.4049 seconds Memory: 10.050 MB DB Queries: 10
    Timing: 0.4047 seconds Memory: 10.050 MB DB Queries: 10
    Average Timing: 0.417975 seconds

    With Add-on
    Timing: 0.4427 seconds Memory: 10.157 MB DB Queries: 10
    Timing: 0.4160 seconds Memory: 10.157 MB DB Queries: 10
    Timing: 0.4380 seconds Memory: 10.157 MB DB Queries: 10
    Timing: 0.4126 seconds Memory: 10.157 MB DB Queries: 10
    Average Timing: 0.427325 seconds

    Timing: 2.2% increase
    Memory: 1.1% increase
     
    #1 SneakyDave, Nov 3, 2014
    Last edited: Nov 3, 2014
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice