blobovniczatree: Speedup rebuild test #894

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:speedup-tests into master 2023-12-29 16:28:56 +00:00

View file

@ -46,7 +46,7 @@ func testBlobovniczaTreeRebuildHelper(t *testing.T, sourceDepth, sourceWidth, ta
WithBlobovniczaShallowWidth(sourceWidth), WithBlobovniczaShallowWidth(sourceWidth),
WithBlobovniczaShallowDepth(sourceDepth), WithBlobovniczaShallowDepth(sourceDepth),
WithRootPath(dir), WithRootPath(dir),
WithBlobovniczaSize(100*1024*1024), WithBlobovniczaSize(100*1024),
WithWaitBeforeDropDB(0), WithWaitBeforeDropDB(0),
WithOpenedCacheSize(1000), WithOpenedCacheSize(1000),
WithMoveBatchSize(3)) WithMoveBatchSize(3))
@ -56,7 +56,7 @@ func testBlobovniczaTreeRebuildHelper(t *testing.T, sourceDepth, sourceWidth, ta
eg, egCtx := errgroup.WithContext(context.Background()) eg, egCtx := errgroup.WithContext(context.Background())
storageIDs := make(map[oid.Address][]byte) storageIDs := make(map[oid.Address][]byte)
storageIDsGuard := &sync.Mutex{} storageIDsGuard := &sync.Mutex{}
for i := 0; i < 1000; i++ { for i := 0; i < 100; i++ {
eg.Go(func() error { eg.Go(func() error {
obj := blobstortest.NewObject(1024) obj := blobstortest.NewObject(1024)
data, err := obj.Marshal() data, err := obj.Marshal()
@ -86,10 +86,10 @@ func testBlobovniczaTreeRebuildHelper(t *testing.T, sourceDepth, sourceWidth, ta
WithBlobovniczaShallowWidth(targetWidth), WithBlobovniczaShallowWidth(targetWidth),
WithBlobovniczaShallowDepth(targetDepth), WithBlobovniczaShallowDepth(targetDepth),
WithRootPath(dir), WithRootPath(dir),
WithBlobovniczaSize(100*1024*1024), WithBlobovniczaSize(100*1024),
WithWaitBeforeDropDB(0), WithWaitBeforeDropDB(0),
WithOpenedCacheSize(1000), WithOpenedCacheSize(1000),
WithMoveBatchSize(3)) WithMoveBatchSize(50))
require.NoError(t, b.Open(false)) require.NoError(t, b.Open(false))
require.NoError(t, b.Init()) require.NoError(t, b.Init())