Skip to content

Commit dc88d68

Browse files
committed
copy go sources to the server instead of pre-built binary
1 parent ae07620 commit dc88d68

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/perf.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,24 @@
1616
connections: "{{ connstrs.results | map(attribute='ansible_facts.connstr') | join }}"
1717

1818
- name: copy transfers binary
19-
copy: src=perf/perf.linux dest=~/perf mode=0755
19+
copy: src=./perf/{{item}} dest=~/{{item}} mode=0755
20+
with_items:
21+
- "perf.go"
22+
- "transfers.go"
2023

2124
- hosts: clients[0]
2225
gather_facts: no
2326
tasks:
2427
- name: fill the databases
25-
shell: "~/perf {{connections}} -g -i"
28+
shell: "go run ~/perf.go ~/transfers.go {{connections}} -g -i"
2629
register: transfers_result
2730
- debug: "var=transfers_result"
2831

2932
- hosts: clients[0]
3033
gather_facts: no
3134
tasks:
3235
- name: run transfers
33-
shell: "~/perf {{connections}} {{runkeys | d('-g -w 8 -r 1 -n 1000 -a 10000')}}"
36+
shell: "go run ~/perf.go ~/transfers.go {{connections}} {{runkeys | d('-g -w 400 -r 1 -n 1000 -a 100000')}}"
3437
register: transfers_result
3538
- debug: var=transfers_result
3639

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy