Skip to content

Instantly share code, notes, and snippets.

@jfsimon
Created July 13, 2012 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfsimon/3107676 to your computer and use it in GitHub Desktop.
Save jfsimon/3107676 to your computer and use it in GitHub Desktop.
Starting benchmark, it takes several minutes...
1010 files
110 directories
10 iterations
9 cases
2 adapters
case php gnu_find
0 1,026,543 142,843
1 1,070,375 141,539
2 3,181,066 1,157,560
3 1,613,417 1,229,668
4 1,029,393 154,798
5 105,256 160,854
6 166,482 56,492
7 783,100 68,189
8 169,540 30,002
0 Find files by name containing a*
1 Find files by name containing a* + Find files by name containing a* not containing *b
2 Sort files by name
3 Sort files by modified time
4 Find files by name containing a* + Sort files by name
5 Files with depth of 2
6 Find files by name containing a* + Sort files by name + Files with depth of 2
7 Files with size of 2
8 Find files by name containing a* + Sort files by name + Files with depth of 2 + Files with size of 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment