Files
example-voting-app/seed-data/generate-votes.sh
Bret Fisher a33c638b2f adding data seeding
Just run "docker-compose -f docker-compose.seed.yml up" to seed (you need to "docker-compose up -d" first)
2021-01-29 17:38:20 -05:00

7 lines
304 B
Bash
Executable File

#!/bin/sh
# create 3000 votes (2000 for option a, 1000 for option b)
ab -n 1000 -c 50 -p posta -T "application/x-www-form-urlencoded" http://vote/
ab -n 1000 -c 50 -p postb -T "application/x-www-form-urlencoded" http://vote/
ab -n 1000 -c 50 -p posta -T "application/x-www-form-urlencoded" http://vote/