Updated documentation

This commit is contained in:
Eduard Urbach 2023-07-12 16:16:27 +02:00
parent 22391ed036
commit d233cad2ba
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -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
@ -66,12 +75,3 @@ 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
```