From 72e53f97e306bbd0625ab195b3076fcb934c3d11 Mon Sep 17 00:00:00 2001 From: renancloudwalk <53792026+renancloudwalk@users.noreply.github.com> Date: Fri, 1 Mar 2024 07:44:55 -0300 Subject: [PATCH] Make performance test with postgres (#298) * fix: keep block number on execution * lint * chore: make performance tests use postgres --- justfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 9be74efa2..1af71bd03 100644 --- a/justfile +++ b/justfile @@ -239,6 +239,7 @@ e2e-flamegraph: echo "Starting PostgreSQL with Docker Compose..." docker-compose down docker-compose up -d --force-recreate + psql postgres://postgres:123@0.0.0.0:5432/stratus -c "TRUNCATE TABLE blocks CASCADE;" # Wait for PostgreSQL to be ready echo "Waiting for PostgreSQL to be ready..." @@ -255,7 +256,7 @@ e2e-flamegraph: # Run cargo flamegraph with necessary environment variables echo "Running cargo flamegraph..." - CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin rpc-server-poller -- --external-rpc=http://localhost:3003/rpc + CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin rpc-server-poller -- --external-rpc=http://localhost:3003/rpc --storage={{postgres_url}} # ------------------------------------------------------------------------------