Commit 41b6f3ed authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Switch off kernel side caching for entries, to get more stable benchmark timings.

parent 6b3e9553
......@@ -164,8 +164,8 @@ func BenchmarkGoFuseThreadedStat(b *testing.B) {
ttl := 100 * time.Millisecond
opts := fuse.FileSystemOptions{
EntryTimeout: ttl,
AttrTimeout: ttl,
EntryTimeout: 0.0,
AttrTimeout: 0.0,
NegativeTimeout: 0.0,
}
wd, clean := setupFs(fs, &opts)
......@@ -236,7 +236,7 @@ func BenchmarkCFuseThreadedStat(b *testing.B) {
wd, _ := os.Getwd()
cmd := exec.Command(wd+"/cstatfs",
"-o",
"entry_timeout=0.1,attr_timeout=0.1,ac_attr_timeout=0.0,negative_timeout=0.0",
"entry_timeout=0.0,attr_timeout=0.0,ac_attr_timeout=0.0,negative_timeout=0.0",
mountPoint)
cmd.Env = append(os.Environ(), fmt.Sprintf("STATFS_INPUT=%s", f.Name()))
cmd.Start()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment