Skip to content

Commit

Permalink
Mini
Browse files Browse the repository at this point in the history
  • Loading branch information
claygod committed Jun 20, 2018
1 parent 0557412 commit 7a1b1c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions adb_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func NewReception(patch string) (*Reception, error) {
if err != nil {
return nil, err
}
ch := make(chan *batcher.Task, 8000)
q := newQueue(sizeBucket * 8)
ch := make(chan *batcher.Task, 256)
q := newQueue(sizeBucket * 16)
b := batcher.New(wal, q, ch)

r := &Reception{
Expand Down
2 changes: 1 addition & 1 deletion adb_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func BenchmarkTransactionParallel(b *testing.B) { // GOGC=off go test -bench=Ben
})
i := 0
// runtime.GOMAXPROCS(1)
b.SetParallelism(2)
b.SetParallelism(1)

b.StartTimer()

Expand Down

0 comments on commit 7a1b1c9

Please sign in to comment.