Any before and after benchmarks available?

Comments

firebird’s picture

Sorry, I've been on vacation from mid-January to mid-March.

I've got some clean-up work to do on the module, so I'll do that first. There are no proper benchmark tests yet, just the project I was working on that was first unusably slow, and then much better. I'll get some proper tests done on a clean install once I have a moment for this project.

firebird’s picture

Menuperformance benchmark tests

- Vanilla setup, Drupal 7.12

- Additional modules:
  - Coder
  - Coder review
  - Devel
  - Devel generate
  - Menuperformance
  - Taxonomy menu
  
- Content generated with devel generate:
  - 1000 nodes generated (not that it should make any difference)
  - 1000 menu items generated in one menu
  
- Tests were done with menuperformance enabled but not activated (activation 
sets drupal variable "menu_override_parent_selector"), and then with the module
activated.

- Tests were done on a Macbook running Apache, PHP and MySQL.

- Test 1: http://d7.local/admin/structure/taxonomy/tags/edit
  - Testing the selection of the mount point for the Taxonomy menu.
  - Menuperformance not active:
    - Page execution time was 831.36 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=46.14 MB, PHP peak=51.5 MB.
    - Page execution time was 441.54 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=46.01 MB, PHP peak=47 MB.
    - Page execution time was 451.06 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=46.01 MB, PHP peak=47 MB.
    - Page execution time was 449.11 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=46.01 MB, PHP peak=47 MB.
  - Menuperformance active:
    - Page execution time was 269.45 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=28.54 MB, PHP peak=28.75 MB.
    - Page execution time was 265.48 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=28.54 MB, PHP peak=28.75 MB.
    - Page execution time was 264.79 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=28.54 MB, PHP peak=28.75 MB.
    - Page execution time was 264.97 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=28.54 MB, PHP peak=28.75 MB.
    
- Test 2: http://d7.local/admin/structure/types/manage/article
  - Testing the selection of available menu items and default parent items for 
    node types.
  - NOTE: This test isn't fully valid, as the Menuperformance implementation
    currently does not allow the selection of the default menu item.
  - Menuperformance not active:
    - Page execution time was 446.85 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=46.03 MB, PHP peak=47 MB.
    - Page execution time was 449.46 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=46.03 MB, PHP peak=47 MB.
    - Page execution time was 442.41 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=46.03 MB, PHP peak=47 MB.
  - Menuperformance active:
    - Page execution time was 276.42 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=28.51 MB, PHP peak=28.75 MB.
    - Page execution time was 278.18 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=28.51 MB, PHP peak=28.75 MB.
    - Page execution time was 283.84 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=28.51 MB, PHP peak=28.75 MB.
    
- Test 3: http://d7.local/admin/structure/menu/item/460/edit
  - Testing editing of a menu item (selection of parent menu item)
  - Menuperformance not active:
    - Page execution time was 429.87 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=45.93 MB, PHP peak=46.5 MB.
    - Page execution time was 425.18 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=45.93 MB, PHP peak=46.5 MB.
    - Page execution time was 429.29 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=45.93 MB, PHP peak=46.5 MB.
  - Menuperformance active:
    - Page execution time was 262.71 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=28.41 MB, PHP peak=28.75 MB.
    - Page execution time was 251.41 ms. Memory used at: devel_boot()=5.25 MB, devel_shutdown()=28.41 MB, PHP peak=28.75 MB.
    - Page execution time was 264.96 ms. Memory used at: devel_boot()=4.74 MB, devel_shutdown()=28.41 MB, PHP peak=28.75 MB.
    
- Test 4: http://d7.local/node/1000/edit?destination=admin/content
  - Test node editing (selection of menu item)
  - The article node type was edited so that menu items could be selected from
    the 1000-item test menu.
  - Menuperformance not active:
    - Page execution time was 697.16 ms. Memory used at: devel_boot()=4.75 MB, devel_shutdown()=41.95 MB, PHP peak=47 MB.
    - Page execution time was 502.57 ms. Memory used at: devel_boot()=4.75 MB, devel_shutdown()=41.83 MB, PHP peak=43.25 MB.
    - Page execution time was 496.74 ms. Memory used at: devel_boot()=4.75 MB, devel_shutdown()=41.83 MB, PHP peak=43.25 MB.
  - Menuperformance active:
    - Page execution time was 396.85 ms. Memory used at: devel_boot()=4.75 MB, devel_shutdown()=28.3 MB, PHP peak=28.5 MB.
    - Page execution time was 367.91 ms. Memory used at: devel_boot()=4.75 MB, devel_shutdown()=28.3 MB, PHP peak=28.5 MB.
    - Page execution time was 406.8 ms. Memory used at: devel_boot()=4.75 MB, devel_shutdown()=28.3 MB, PHP peak=28.5 MB.
    
- Test 5: As test 4, but with 10000 menu items instead of 1000
  - Menuperformance not active:
    - Page execution time was 6766.72 ms. Memory used at: devel_boot()=4.75 MB, devel_shutdown()=182.46 MB, PHP peak=215.5 MB.
    - Page execution time was 4382.72 ms. Memory used at: devel_boot()=4.75 MB, devel_shutdown()=181.3 MB, PHP peak=188.25 MB.
    - Page execution time was 3627.56 ms. Memory used at: devel_boot()=4.75 MB, devel_shutdown()=181.3 MB, PHP peak=188.25 MB.
  - Menuperformance active:
    - Page execution time was 386.97 ms. Memory used at: devel_boot()=4.75 MB, devel_shutdown()=37.89 MB, PHP peak=38.5 MB.
    - Page execution time was 382.96 ms. Memory used at: devel_boot()=4.75 MB, devel_shutdown()=37.89 MB, PHP peak=38.5 MB.
    - Page execution time was 376.43 ms. Memory used at: devel_boot()=4.75 MB, devel_shutdown()=37.89 MB, PHP peak=38.5 MB.
mikeytown2’s picture

Awesome, added this to the D7 performance wiki.

firebird’s picture

Version: » 7.x-1.x-dev
Status: Active » Closed (fixed)