ci: run perf asserts in CI (backend quality & benchmark jobs)

This commit is contained in:
GitHub Actions
2025-12-04 20:58:18 +00:00
parent 05cb8046d6
commit cecf0ef9d6
5 changed files with 705 additions and 3 deletions

36
.vscode/tasks.json vendored
View File

@@ -182,7 +182,37 @@
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "Backend: Run Benchmarks",
"type": "shell",
"command": "cd backend && go test -bench=. -benchmem -benchtime=1s ./internal/api/handlers/... -run=^$",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": ["$go"]
},
{
"label": "Backend: Run Benchmarks (Quick)",
"type": "shell",
"command": "cd backend && go test -bench=GetStatus -benchmem -benchtime=500ms ./internal/api/handlers/... -run=^$",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": ["$go"]
},
{
"label": "Backend: Run Perf Asserts",
"type": "shell",
"command": "cd backend && go test -run TestPerf -v ./internal/api/handlers -count=1",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": ["$go"]
}
]
}