Results vary a bit on my machine, but it's pretty much the same (unless I'm doing something wrong, please point it out if so):
$ make benchmark go test -bench=. goos: darwin goarch: arm64 pkg: sqlite BenchmarkWriteBlogPost/write_blog_post_without_WAL-8 6036 186719 ns/op BenchmarkWriteBlogPost/write_blog_post_with_WAL-8 102567 11169 ns/op BenchmarkWriteBlogPost/write_blog_post_with_WAL_and_Go_mutex-8 104228 11226 ns/op PASS ok sqlite 3.833s
Results vary a bit on my machine, but it's pretty much the same (unless I'm doing something wrong, please point it out if so):