github.com/wayscript/goofys@v0.24.0/bench/cache/README.md (about) 1 ## Benchmark with caching enabled 2 3 The test was run on an EC2 m5.4xlarge in us-west-2a connected to a 4 bucket in us-west-2. Units are seconds. 5 6 Enabling --cache has little impact on write speed (since catfs implements a write-through cache). Read and time to first byte measures cached read. catfs does not cache metadata operations. 7 8 ![Cached Benchmark result](/bench/cache/bench.png?raw=true "Cached Benchmark") 9 10 To run the benchmark, configure EC2's instance role to be able to write to `$TESTBUCKET`, and then do: 11 ```ShellSession 12 $ export AWS_ACCESS_KEY_ID=AKID1234567890 13 $ export AWS_SECRET_ACCESS_KEY=MY-SECRET-KEY 14 $ sudo docker run -e BUCKET=$TESTBUCKET -e CACHE=true --rm --privileged --net=host -v /tmp/cache:/tmp/cache kahing/goofys-bench 15 # result will be written to $TESTBUCKET 16 ```