Skip to content

Commit

Permalink
Push values from pi_ls benchmark too
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou committed Jun 11, 2024
1 parent 8c07653 commit 507e098
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/bencher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- bencher_improvements
workflow_dispatch:

jobs:
Expand Down
11 changes: 4 additions & 7 deletions tests/infra/basicperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ def run(args):
for remote_client in clients:
remote_client.stop()

metrics = []
if not args.stop_primary_after_s:
primary, _ = network.find_primary()
with primary.client() as nc:
Expand Down Expand Up @@ -590,12 +589,10 @@ def table():
)

bf = infra.bencher.Bencher()
metrics.append(infra.bencher.Throughput(round(throughput, 1)))
for metric in metrics:
bf.set(
args.label,
metric,
)
bf.set(
args.label,
infra.bencher.Throughput(round(throughput, 1)),
)

except Exception as e:
LOG.error(f"Stopping clients due to exception: {e}")
Expand Down
8 changes: 8 additions & 0 deletions tests/infra/piccolo_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,14 @@ def run(get_command, args):
perf_result = round(len(df_sends.index) / time_spent, 1)
LOG.success(f"{args.label}/{remote_client.name}: {perf_result}")

# Throughput from only one client, preserved for legacy reason
# see basicperf.py for a better, cross-client approach.
bf = infra.bencher.Bencher()
bf.set(
args.label,
infra.bencher.Throughput(perf_result),
)

primary, _ = network.find_primary()
with primary.client() as nc:
r = nc.get("/node/memory")
Expand Down

0 comments on commit 507e098

Please sign in to comment.