Skip to content

Commit

Permalink
use sbt client to runProtoBench
Browse files Browse the repository at this point in the history
  • Loading branch information
rmgk committed Dec 8, 2024
1 parent ab7b1e3 commit 7adfb1a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,21 @@ protoBenchRunNativeImage node="node" client="client" args="bench-1-1":
runProtoBench node="node" client="client" args="bench-1-1":
#!/usr/bin/env fish
set -l jarspath (sbt --error "print proBench/packageJars")
sbt --client 'set proBench/JarExport.packageJarsPath := "target/probench/jars"; proBench/packageJars'

kitty java --class-path "$jarspath/*" probench.cli {{node}} --name NODE1 --listen-client-port 8010 --listen-peer-port 8011 --cluster --initial-cluster-ids NODE1 NODE2 NODE3 &
kitty java --class-path "target/probench/jars/*" probench.cli {{node}} --name NODE1 --listen-client-port 8010 --listen-peer-port 8011 --cluster --initial-cluster-ids NODE1 NODE2 NODE3 &
sleep 1;
kitty java --class-path "$jarspath/*" probench.cli {{node}} --name NODE2 --listen-client-port 8020 --listen-peer-port 8021 --cluster localhost:8011 --initial-cluster-ids NODE1 NODE2 NODE3 &
kitty java --class-path "target/probench/jars/*" probench.cli {{node}} --name NODE2 --listen-client-port 8020 --listen-peer-port 8021 --cluster localhost:8011 --initial-cluster-ids NODE1 NODE2 NODE3 &
sleep 1;
kitty java --class-path "$jarspath/*" probench.cli {{node}} --name NODE3 --listen-client-port 8030 --listen-peer-port 8031 --cluster localhost:8011 localhost:8021 --initial-cluster-ids NODE1 NODE2 NODE3 &
kitty java --class-path "target/probench/jars/*" probench.cli {{node}} --name NODE3 --listen-client-port 8030 --listen-peer-port 8031 --cluster localhost:8011 localhost:8021 --initial-cluster-ids NODE1 NODE2 NODE3 &

sleep 1;
cat "Modules/Examples/Protocol Benchmarks/args/bench-1-1" | java --class-path "$jarspath/*" probench.cli {{client}} --node localhost:8010 --name Client1
# java --class-path "$jarspath/*" probench.cli client --node localhost:8010 --name Client2
# java --class-path "$jarspath/*" probench.cli client --node localhost:8010 --name Client3
cat "Modules/Examples/Protocol Benchmarks/args/bench-1-1" | java --class-path "target/probench/jars/*" probench.cli {{client}} --node localhost:8010 --name Client1
# java --class-path "target/probench/jars/*" probench.cli client --node localhost:8010 --name Client2
# java --class-path "target/probench/jars/*" probench.cli client --node localhost:8010 --name Client3

trap 'kill $(jobs -p)' EXIT
rm -r "target/probench/"

runProtoBenchCluster node="node":
#!/usr/bin/env fish
Expand Down

0 comments on commit 7adfb1a

Please sign in to comment.