Skip to content

Instantly share code, notes, and snippets.

@steveyen
steveyen / 1about-mossStore-benchmarks.txt
Last active July 26, 2016 00:57
results from various go test -bench=BenchmarkStore
These tests were run on macbookpro, 16GB ram, SSD.
The "unsafe" test results are faster than the "safe" test results,
as the unsafe tests are able to use golang's unsafe package
to avoid additional data conversions.
steveyen@ubu-s835:~/go/src/github.com/couchbase/moss$ go test -timeout=10h -bench=BenchmarkStore
PASS
BenchmarkStore_numItems1M_keySize20_valSize100_batchSize100-32
spec: {numItems:1000000 keySize:20 valSize:100 batchSize:100 accesses:[]}
open time: 0 (ms), phase 0 wop/s, 0 wkb/s, 0 rop/s, 0 rkb/s, cum 0 wop/s, 0 wkb/s, 0 rop/s, 0 rkb/s
load time: 2521 (ms), phase 396667 wop/s, 46484 wkb/s, 0 rop/s, 0 rkb/s, cum 396667 wop/s, 46484 wkb/s, 0 rop/s, 0 rkb/s
drain time: 205 (ms), phase 0 wop/s, 0 wkb/s, 0 rop/s, 0 rkb/s, cum 366837 wop/s, 42988 wkb/s, 0 rop/s, 0 rkb/s
close time: 0 (ms), phase 0 wop/s, 0 wkb/s, 0 rop/s, 0 rkb/s, cum 366837 wop/s, 42988 wkb/s, 0 rop/s, 0 rkb/s
reopen time: 0 (ms), phase 0 wop/s, 0 wkb/s, 0 rop/s, 0 rkb/s, cum 366837 wop/s, 4
with bleve origin/master...
Steves-MacBook-Pro:bleve-bench steveyen$ go build ./cmd/bleve-query/ && rm cpu.pprof && ./bleve-query -cpuprofile cpu.pprof -index=/Users/steveyen/go/src/github.com/blevesearch/bleve-bench/tmp/tmp/bench.bleve book can date first http isbn last many name one see title united web year
date,queries_finished,avg_queries_per_second,queries_per_second
2016-08-02T10:59:36-07:00,0,0.000000,0.000000
2016-08-02T10:59:41-07:00,391,78.130687,78.130687
2016-08-02T10:59:46-07:00,792,79.162199,80.194556
2016-08-02T10:59:51-07:00,1191,79.399242,79.873995
2016-08-02T10:59:56-07:00,1590,79.484492,79.740053
2016-08-02T11:00:01-07:00,1990,79.584793,79.986004
Steves-MacBook-Pro:bleve steveyen$ git diff
diff --git a/index/index.go b/index/index.go
index 880c35f..77e4d46 100644
--- a/index/index.go
+++ b/index/index.go
@@ -123,7 +123,9 @@ type TermFieldDoc struct {
}
func (tfd *TermFieldDoc) Reset() *TermFieldDoc {
+ id := tfd.ID
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.