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) { ...@@ -164,8 +164,8 @@ func BenchmarkGoFuseThreadedStat(b *testing.B) {
ttl := 100 * time.Millisecond ttl := 100 * time.Millisecond
opts := fuse.FileSystemOptions{ opts := fuse.FileSystemOptions{
EntryTimeout: ttl, EntryTimeout: 0.0,
AttrTimeout: ttl, AttrTimeout: 0.0,
NegativeTimeout: 0.0, NegativeTimeout: 0.0,
} }
wd, clean := setupFs(fs, &opts) wd, clean := setupFs(fs, &opts)
...@@ -236,7 +236,7 @@ func BenchmarkCFuseThreadedStat(b *testing.B) { ...@@ -236,7 +236,7 @@ func BenchmarkCFuseThreadedStat(b *testing.B) {
wd, _ := os.Getwd() wd, _ := os.Getwd()
cmd := exec.Command(wd+"/cstatfs", cmd := exec.Command(wd+"/cstatfs",
"-o", "-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) mountPoint)
cmd.Env = append(os.Environ(), fmt.Sprintf("STATFS_INPUT=%s", f.Name())) cmd.Env = append(os.Environ(), fmt.Sprintf("STATFS_INPUT=%s", f.Name()))
cmd.Start() 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