Merge branch 'glebarez-master-patch-31346' into 'master'

fix readme after changing image names in 49148932f6

See merge request cznic/sqlite!32
This commit is contained in:
cznic
2021-12-18 19:58:07 +00:00

View File

@@ -15,17 +15,17 @@ Dark color scheme:
go test -v . -dark go test -v . -dark
``` ```
### my results: ### My results:
#### Insert #### Insert
| On disk | In memory | | On disk | In memory |
| :---------------------------------------- | :--------------------------------------- | | :---------------------------------------- | :--------------------------------------- |
| ![](out/benchmarkInsert_memory:false.png) | ![](out/benchmarkInsert_memory:true.png) | | ![](out/benchmarkInsert_memory_false.png) | ![](out/benchmarkInsert_memory_true.png) |
#### Select #### Select
| On disk | In memory | | On disk | In memory |
| :---------------------------------------- | :--------------------------------------- | | :---------------------------------------- | :--------------------------------------- |
| ![](out/benchmarkSelect_memory:false.png) | ![](out/benchmarkSelect_memory:true.png) | | ![](out/benchmarkSelect_memory_false.png) | ![](out/benchmarkSelect_memory_true.png) |
## Adding benchmarks ## Adding benchmarks
A specific type of benchmark function is currently automated: A specific type of benchmark function is currently automated:
@@ -42,7 +42,7 @@ var allBenchmarksOfNRows = []bechmarkOfNRows{
} }
``` ```
Elements of ```allBenchmarksOfNRows``` will be automatically evaluated and plotted when alternative plotting runner is used (e.g. ```go run .```) Elements of ```allBenchmarksOfNRows``` will be automatically evaluated and plotted when alternative runner is used.
To make implemented benchmark available via go-test, you may write a simple stub like following (see [bench_test.go](bench_test.go)): To make implemented benchmark available via go-test, you may write a simple stub like following (see [bench_test.go](bench_test.go)):
```go ```go