Skip to content

Commit

Permalink
test: disable OTel tracing in memory tests
Browse files Browse the repository at this point in the history
Update reference memory usage accordingly
  • Loading branch information
develop7 committed Dec 17, 2024
1 parent c065a27 commit 287182c
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions test/memory/memory-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export PGRST_SERVER_HOST="127.0.0.1"
export PGRST_SERVER_PORT="$pgrPort"
export PGRST_JWT_SECRET="reallyreallyreallyreallyverysafe"
export PGRST_DB_CONFIG="false"
export OTEL_TRACES_SAMPLER="always_off" # minimize the impact of tracing on memory usage

trap "kill 0" int term exit

Expand Down Expand Up @@ -103,20 +104,20 @@ postJsonArrayTest(){
echo "Running memory usage tests.."

jsonKeyTest "1M" "POST" "/rpc/leak?columns=blob" "27M"
jsonKeyTest "1M" "POST" "/leak?columns=blob" "24M"
jsonKeyTest "1M" "PATCH" "/leak?id=eq.1&columns=blob" "24M"
jsonKeyTest "1M" "POST" "/leak?columns=blob" "22M"
jsonKeyTest "1M" "PATCH" "/leak?id=eq.1&columns=blob" "22M"

jsonKeyTest "10M" "POST" "/rpc/leak?columns=blob" "33M"
jsonKeyTest "10M" "POST" "/leak?columns=blob" "33M"
jsonKeyTest "10M" "PATCH" "/leak?id=eq.1&columns=blob" "33M"
jsonKeyTest "10M" "POST" "/rpc/leak?columns=blob" "32M"
jsonKeyTest "10M" "POST" "/leak?columns=blob" "32M"
jsonKeyTest "10M" "PATCH" "/leak?id=eq.1&columns=blob" "32M"

jsonKeyTest "50M" "POST" "/rpc/leak?columns=blob" "75M"
jsonKeyTest "50M" "POST" "/leak?columns=blob" "75M"
jsonKeyTest "50M" "PATCH" "/leak?id=eq.1&columns=blob" "75M"
jsonKeyTest "50M" "POST" "/rpc/leak?columns=blob" "73M"
jsonKeyTest "50M" "POST" "/leak?columns=blob" "73M"
jsonKeyTest "50M" "PATCH" "/leak?id=eq.1&columns=blob" "73M"

postJsonArrayTest "1000" "/perf_articles?columns=id,body" "23M"
postJsonArrayTest "10000" "/perf_articles?columns=id,body" "23M"
postJsonArrayTest "100000" "/perf_articles?columns=id,body" "26M"
postJsonArrayTest "1000" "/perf_articles?columns=id,body" "21M"
postJsonArrayTest "10000" "/perf_articles?columns=id,body" "22M"
postJsonArrayTest "100000" "/perf_articles?columns=id,body" "25M"

trap - int term exit

Expand Down

0 comments on commit 287182c

Please sign in to comment.