Updated documentation
This commit is contained in:
parent
22391ed036
commit
d233cad2ba
20
README.md
20
README.md
@ -42,6 +42,15 @@ for user := range users.All() {
|
|||||||
{"name":"User 3"}
|
{"name":"User 3"}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Benchmarks
|
||||||
|
|
||||||
|
```
|
||||||
|
BenchmarkGet-12 275126157 4.462 ns/op 0 B/op 0 allocs/op
|
||||||
|
BenchmarkSet-12 4796011 251.0 ns/op 32 B/op 2 allocs/op
|
||||||
|
BenchmarkDelete-12 471913158 2.530 ns/op 0 B/op 0 allocs/op
|
||||||
|
BenchmarkNew-12 48838576 22.89 ns/op 80 B/op 1 allocs/op
|
||||||
|
```
|
||||||
|
|
||||||
## Storage systems
|
## Storage systems
|
||||||
|
|
||||||
### nil
|
### nil
|
||||||
@ -65,13 +74,4 @@ Make sure you `defer collection.Sync()` to ensure that queued writes will be han
|
|||||||
|
|
||||||
### storage.Directory
|
### storage.Directory
|
||||||
|
|
||||||
`storage.Directory` creates a directory for your records and saves each record in a separate file. The performance of this method heavily depends on the file system you are using.
|
`storage.Directory` creates a directory for your records and saves each record in a separate file. The performance of this method heavily depends on the file system you are using.
|
||||||
|
|
||||||
## Benchmarks
|
|
||||||
|
|
||||||
```
|
|
||||||
BenchmarkGet-12 275126157 4.462 ns/op 0 B/op 0 allocs/op
|
|
||||||
BenchmarkSet-12 4796011 251.0 ns/op 32 B/op 2 allocs/op
|
|
||||||
BenchmarkDelete-12 471913158 2.530 ns/op 0 B/op 0 allocs/op
|
|
||||||
BenchmarkNew-12 48838576 22.89 ns/op 80 B/op 1 allocs/op
|
|
||||||
```
|
|
Loading…
Reference in New Issue
Block a user