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:
parent
15ecd3b3e9
commit
a7b8e4fda0
2 changed files with 142 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue