OSDN Git Service

Add directory tree traversal benchmark.
authorJeff Sharkey <jsharkey@android.com>
Sat, 4 Aug 2012 00:57:55 +0000 (17:57 -0700)
committerJeff Sharkey <jsharkey@android.com>
Wed, 8 Aug 2012 20:19:17 +0000 (13:19 -0700)
commite1b480b11c19f014a2a6ceddd28883275a4ba0e3
treebcaeccc9893d99bd2ca1518c3c2347f4eed3d999
parentfceba519e6b9ed17b9f05d292f363cda2412edf4
Add directory tree traversal benchmark.

Generates a directory tree with requested depth, also writing files
at each leaf to add width.  Then it times traversal of entire tree,
which can reveal impact of VFS caching inside kernel.

Also specify mode_t when creating files.

Bug: 6925012
Change-Id: I65370d6fd0b9777e959be3a0867f27ce22ee4644
tests/sdcard/sdcard_perf_test.cpp
tests/sdcard/testcase.cpp
tests/sdcard/testcase.h