perf comments
This commit is contained in:
parent
771c5cb336
commit
a1153a74ce
@ -416,16 +416,22 @@ class myCB : public FsTreeWalkerCB {
|
|||||||
static const char *thisprog;
|
static const char *thisprog;
|
||||||
|
|
||||||
// Note that breadth first sorting is relatively expensive: less inode
|
// Note that breadth first sorting is relatively expensive: less inode
|
||||||
// locality, more disk usage (and also more user memory usage, does not appear
|
// locality, more disk usage (and also more user memory usage, does
|
||||||
// here):
|
// not appear here). Some typical results on a real tree with 2.6
|
||||||
// y$ time trfstreewalk -d / 2>&1 > /tmp/alld
|
// million entries (220MB of name data)
|
||||||
// real 15m32.520s user 0m4.815s sys 0m33.014s
|
// Recoll 1.13
|
||||||
// y$ time trfstreewalk -b / 2>&1 > /tmp/allb
|
// time trfstreewalk / > /data/tmp/old
|
||||||
// real 17m3.380s user 0m4.658s sys 0m34.473s
|
// real 13m32.839s user 0m4.443s sys 0m31.128s
|
||||||
// y$ wc /tmp/allb /tmp/alld
|
//
|
||||||
// 2618155 3208127 221619857 /tmp/allb
|
// Recoll 1.14
|
||||||
// 2618154 3208126 221619847 /tmp/alld
|
// time trfstreewalk / > /data/tmp/nat;
|
||||||
// (diff due to changes in /proc)
|
// real 13m28.685s user 0m4.430s sys 0m31.083s
|
||||||
|
// time trfstreewalk -d / > /data/tmp/depth;
|
||||||
|
// real 13m30.051s user 0m4.140s sys 0m33.862s
|
||||||
|
// time trfstreewalk -m / > /data/tmp/mixed;
|
||||||
|
// real 14m53.245s user 0m4.244s sys 0m34.494s
|
||||||
|
// time trfstreewalk -b / > /data/tmp/breadth;
|
||||||
|
// real 17m10.585s user 0m4.532s sys 0m35.033s
|
||||||
|
|
||||||
static char usage [] =
|
static char usage [] =
|
||||||
"trfstreewalk [-p pattern] [-P ignpath] [-r] [-c] topdir\n"
|
"trfstreewalk [-p pattern] [-P ignpath] [-r] [-c] topdir\n"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user