WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #46645, comment 13


Ignore:
Timestamp:
03/27/2019 08:00:25 PM (6 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #46645, comment 13

    initial v1  
    44
    55Right, to be able to compare running times the caching in `get_dirsize()` has to be turned off. Here is another gist with 20 passes that uses `recurse_dirsize()` directly (no caching) if you want to test it again :) https://gist.github.com/azaozz/7d29a2505557668ed0e948139cf2b58b.
     6
     7With this one I get:
     8
     9{{{
     10RecursiveDirectoryIterator ABSPATH size 20 times: t = 4.2132198810577, size = 50770644
     11get_dirsize() ABSPATH size 20 times: t = 2.7172060012817, size = 47833812
     12}}}