From d233cad2ba979e30200e9c45d4956f0ce03291b7 Mon Sep 17 00:00:00 2001 From: Eduard Urbach <admin@akyoto.dev> Date: Wed, 12 Jul 2023 16:16:27 +0200 Subject: [PATCH] Updated documentation --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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