Skip to content

Commit

Permalink
Make performance test with postgres (#298)
Browse files Browse the repository at this point in the history
* fix: keep block number on execution

* lint

* chore: make performance tests use postgres
  • Loading branch information
renancloudwalk authored Mar 1, 2024
1 parent 81f5055 commit 72e53f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand All @@ -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}}


# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 72e53f9

Please sign in to comment.