Skip to content

Instantly share code, notes, and snippets.

@saurabhnanda
Created January 28, 2019 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saurabhnanda/78e8523cf079ce7b78704acb1aa8d9fc to your computer and use it in GitHub Desktop.
Save saurabhnanda/78e8523cf079ce7b78704acb1aa8d9fc to your computer and use it in GitHub Desktop.
#!/bin/bash
PGPASSWORD="benchmarking" pgbench \
--initialize \
--init-steps=dtgpf \
--scale=2000 \
--host=$IPADDRESS \
--username=benchmarking
for script in tpcb-like; do
for client in 1 4 8 12 ; do
for i in 1 2 3; do
echo "====================================" >> output-$script-$client.txt
echo "run=$i | script=$script | client=$client" >> output-$script-$client.txt
PGPASSWORD="benchmarking" pgbench \
--builtin=$script \
--client=$client \
--jobs=6 \
--time=600 \
--host=$IPADDRESS \
--username=benchmarking >> output-$script-$client.txt
done
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment