Benchmark fsync
Download a binary from github or build from source (see later).
fsyncbench [flags]
Flags
-n=100: Iterations to test - default 100
-dir=/tmp: Target directory - default os.TmpDir()
It will produce output like this
$ fsyncbench
2013/07/02 16:03:30 That took 988.255164ms for 100 fsyncs
2013/07/02 16:03:30 That took 9.882551ms per fsync
You'll need go installed, then
go get github.com/ncw/fsyncbench
and this will build the binary in $GOPATH/bin
. You can then modify
the source and submit patches.
This is free software under the terms of the MIT license (check the COPYING file included in this package).
The project website is at:
There you can file bug reports, ask for help or contribute patches.
- Nick Craig-Wood nick@craig-wood.com
- Your name goes here!
- Matteo Olivi matteoolivi7@gmail.com