Adds benchmarks for Put/Get, WriteStream/ReadStream, List, and Delete

Also fixes an open fd leak in the filesystem driver that these
benchmarks revealed.
This commit is contained in:
Brian Bland 2014-12-16 12:01:27 -08:00
parent 15ecd3b3e9
commit a7b8e4fda0
2 changed files with 142 additions and 1 deletions

View file

@ -204,6 +204,8 @@ func (d *Driver) List(subPath string) ([]string, error) {
return nil, err
}
defer dir.Close()
fileNames, err := dir.Readdirnames(0)
if err != nil {
return nil, err