t/perf/p7519-fsmonitor.sh: warm cache on first git status
authorNipunn Koorapati <redacted>
Tue, 20 Oct 2020 13:41:00 +0000 (13:41 +0000)
committerJunio C Hamano <redacted>
Tue, 20 Oct 2020 19:52:22 +0000 (12:52 -0700)
commit5851462e8d905ea18f84ea549569563b242e40d1
tree6c8d3bc6f626d9a0b8ded0ab12cfc76b53eea20b
parentdc69d47d216b9ba1b23ecd67e199dfa11192ebbb
t/perf/p7519-fsmonitor.sh: warm cache on first git status

The first git status would be inflated due to warming of
filesystem cache. This makes the results comparable.

Before
Test                                                             this tree
--------------------------------------------------------------------------------
7519.2: status (fsmonitor=.git/hooks/fsmonitor-watchman)         2.52(1.59+1.56)
7519.3: status -uno (fsmonitor=.git/hooks/fsmonitor-watchman)    0.18(0.12+0.06)
7519.4: status -uall (fsmonitor=.git/hooks/fsmonitor-watchman)   1.36(0.73+0.62)
7519.7: status (fsmonitor=)                                      0.69(0.52+0.90)
7519.8: status -uno (fsmonitor=)                                 0.37(0.28+0.81)
7519.9: status -uall (fsmonitor=)                                1.53(0.93+1.32)

After
Test                                                             this tree
--------------------------------------------------------------------------------
7519.2: status (fsmonitor=.git/hooks/fsmonitor-watchman)         0.39(0.33+0.06)
7519.3: status -uno (fsmonitor=.git/hooks/fsmonitor-watchman)    0.17(0.13+0.05)
7519.4: status -uall (fsmonitor=.git/hooks/fsmonitor-watchman)   1.34(0.77+0.56)
7519.7: status (fsmonitor=)                                      0.70(0.53+0.90)
7519.8: status -uno (fsmonitor=)                                 0.37(0.32+0.78)
7519.9: status -uall (fsmonitor=)                                1.55(1.01+1.25)

Signed-off-by: Nipunn Koorapati <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/perf/p7519-fsmonitor.sh
git clone https://git.99rst.org/PROJECT