diff --git a/README.md b/README.md index 64c6d9c..0c717aa 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,15 @@ for user := range users.All() { {"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 ### nil @@ -65,13 +74,4 @@ Make sure you `defer collection.Sync()` to ensure that queued writes will be han ### 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. - -## 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.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. \ No newline at end of file