mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-01-11 10:23:10 +00:00
Modify test command
This commit is contained in:
parent
6feba5b0df
commit
04f5b7da41
25
.github/workflows/Repeated_tests_endurancce.yml
vendored
25
.github/workflows/Repeated_tests_endurancce.yml
vendored
@ -39,18 +39,19 @@ jobs:
|
||||
- name: Initialize CSV
|
||||
run: echo "TestName,Iteration,Phase,HeapAlloc(KB),RSS(KB),Timestamp" > memory_metrics.csv
|
||||
|
||||
- name: Repeated test runs
|
||||
run: |
|
||||
set +e
|
||||
for i in {1..80}; do
|
||||
echo "Iteration $i: measuring memory BEFORE the tests..."
|
||||
go run tools/memory_record.go --iteration $i --phase start
|
||||
echo "Running tests (iteration $i)..."
|
||||
go test -v -tags '!stress' ./...
|
||||
echo "Iteration $i: measuring memory AFTER the tests..."
|
||||
go run tools/memory_record.go --iteration $i --phase end
|
||||
done
|
||||
set -e
|
||||
- name: Repeated test runs
|
||||
run: |
|
||||
set +e
|
||||
for i in {1..20}; do
|
||||
echo "Iteration $i: measuring memory BEFORE the tests..."
|
||||
go run tools/memory_record.go --iteration $i --phase start
|
||||
echo "Running tests (iteration $i)..."
|
||||
go test -v -tags=stress ./...
|
||||
echo "Iteration $i: measuring memory AFTER the tests..."
|
||||
go run tools/memory_record.go --iteration $i --phase end
|
||||
done
|
||||
set -e
|
||||
|
||||
|
||||
- name: Upload memory_metrics.csv
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user