Skip to content

Commit

Permalink
cmd/pebble: use zstd in Pebble nightly benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jbowens committed Jun 14, 2024
1 parent 646c6ba commit 0e4fb77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/pebble/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/cockroachdb/pebble/bloom"
"github.com/cockroachdb/pebble/internal/bytealloc"
"github.com/cockroachdb/pebble/objstorage/remote"
"github.com/cockroachdb/pebble/sstable"
"github.com/cockroachdb/pebble/vfs"
)

Expand Down Expand Up @@ -77,7 +78,8 @@ func newPebbleDB(dir string) DB {

for i := 0; i < len(opts.Levels); i++ {
l := &opts.Levels[i]
l.BlockSize = 32 << 10 // 32 KB
l.BlockSize = 32 << 10 // 32 KB
l.Compression = func() sstable.Compression { return pebble.ZstdCompression }
l.IndexBlockSize = 256 << 10 // 256 KB
l.FilterPolicy = bloom.FilterPolicy(10)
l.FilterType = pebble.TableFilter
Expand Down

0 comments on commit 0e4fb77

Please sign in to comment.