Skip to content

Instantly share code, notes, and snippets.

@lyrixx
Created August 1, 2012 22:24
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 lyrixx/3231244 to your computer and use it in GitHub Desktop.
Save lyrixx/3231244 to your computer and use it in GitHub Desktop.
Symfony-finder-bench.txt
Starting benchmark, it takes several minutes...
1010 files
110 directories
10 iterations
18 cases
2 adapters
case php gnu_find
0 1,721,575 244,197
1 1,692,983 278,179
2 1,795,759 255,781
3 1,824,852 293,961
4 1,988,649 78,340
5 1,752,457 103,775
6 1,879,307 2,077,611
7 300,901 328,450
8 2,006,228 272,776
9 1,904,798 123,912
10 4,433,033 2,413,239
11 4,350,331 2,694,848
12 4,438,546 2,556,235
13 9,182,880 2,407,385
14 11,650,242 2,364,410
15 3,183,438 350,139
16 3,101,191 359,210
17 3,174,524 199,304
0 Find files by name containing a*
1 Find files by name containing ~^a~
2 Find files by name containing a* not containing *a
3 Find files by name containing ~^a.*~ not containing ~.*a$~
4 Find files by name containing ab* not containing *ba
5 Find files by name containing ~^ab.*~ not containing ~.*ba$~
6 Files with depth between 1 and 3
7 Files with depth of 2
8 Files with size between 1 and 3
9 Files with size of 2
10 Sort files by accessed time
11 Sort files by changed time
12 Sort files by modified time
13 Sort files by name
14 Sort files by type
15 Find files by name containing ~^a~
16 Find files by name containing ~^a.*~ not containing ~.*a$~
17 Find files by name containing ~^ab.*~ not containing ~.*ba$~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment