From 35c3ce0bbf631c29f54cf21d651bd7664badea14 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 1 Jul 2025 12:19:04 +0300 Subject: perf: optimize TestDMap3 to use higher concurrency config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TestDMap3 processes 100 files and was taking 22+ seconds - Now uses test_server_complete.json with MaxConcurrentCats=10 - Enabled DTAIL_TURBOBOOST_ENABLE for the server - This should provide similar speedup as TestDCat2 (4x improvement) TestDMapLargeFile was not modified as it processes a single 100MB file rather than multiple files, so concurrency limits don't affect it. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- integrationtests/dmap_test.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'integrationtests') diff --git a/integrationtests/dmap_test.go b/integrationtests/dmap_test.go index c1339b5..fc51b3c 100644 --- a/integrationtests/dmap_test.go +++ b/integrationtests/dmap_test.go @@ -283,7 +283,15 @@ func testDMap3WithServer(t *testing.T, logger *TestLogger) { cleanupFiles(t, outFile, csvFile, queryFile) server := NewTestServer(t) - if err := server.Start("error"); err != nil { + // Use optimized config for processing 100 files + cfg := &ServerConfig{ + Port: server.port, + BindAddress: server.bindAddress, + LogLevel: "error", + ExtraArgs: []string{"--cfg", "test_server_complete.json"}, + Env: map[string]string{"DTAIL_TURBOBOOST_ENABLE": "yes"}, + } + if err := server.StartWithConfig(cfg); err != nil { t.Error(err) return } -- cgit v1.2.3