change benchmark to harmony

pull/243/head
Minh Doan 6 years ago committed by Minh Doan
parent daafb0fd09
commit 4f4bc36af3
  1. 2
      .gitignore
  2. 2
      appspec.yml
  3. 2
      cmd/harmony.go
  4. 2
      node/node.go
  5. 2
      test/kill_node.sh

2
.gitignore vendored

@ -5,7 +5,7 @@
.vscode .vscode
# Executables # Executables
harmony-benchmark harmony
*.pyc *.pyc
*.exe *.exe
*.out *.out

@ -2,7 +2,7 @@ version: 0.0
os: linux os: linux
files: files:
- source: / - source: /
destination: /home/ec2-user/projects/src/harmony-benchmark destination: /home/ec2-user/projects/src/harmony
hooks: hooks:
BeforeInstall: BeforeInstall:
- location: aws-scripts/say_hello.sh - location: aws-scripts/say_hello.sh

@ -27,7 +27,7 @@ var (
commit string commit string
) )
// Constants used by the benchmark. // Constants used by the harmony.
const ( const (
AttackProbability = 20 AttackProbability = 20
) )

@ -104,7 +104,7 @@ type Node struct {
log log.Logger // Log utility log log.Logger // Log utility
ClientPeer *p2p.Peer // The peer for the benchmark tx generator client, used for leaders to return proof-of-accept ClientPeer *p2p.Peer // The peer for the harmony tx generator client, used for leaders to return proof-of-accept
Client *client.Client // The presence of a client object means this node will also act as a client Client *client.Client // The presence of a client object means this node will also act as a client
SelfPeer p2p.Peer // TODO(minhdoan): it could be duplicated with Self below whose is Alok work. SelfPeer p2p.Peer // TODO(minhdoan): it could be duplicated with Self below whose is Alok work.
IDCPeer p2p.Peer IDCPeer p2p.Peer

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
for pid in `/bin/ps -fu $USER| grep "benchmark\|txgen\|soldier\|commander\|profiler\|beacon" | grep -v "grep" | grep -v "vi" | awk '{print $2}'`; for pid in `/bin/ps -fu $USER| grep "harmony\|txgen\|soldier\|commander\|profiler\|beacon" | grep -v "grep" | grep -v "vi" | awk '{print $2}'`;
do do
echo 'Killed process: '$pid echo 'Killed process: '$pid
kill -9 $pid kill -9 $pid

Loading…
Cancel
Save