Skip to content

Commit

Permalink
CAD-2023: remove stack from cardano-benchmarking.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Shevchenko committed Oct 20, 2020
1 parent 90cfb1d commit 415e292
Show file tree
Hide file tree
Showing 36 changed files with 32 additions and 797 deletions.
13 changes: 2 additions & 11 deletions README.md
Expand Up @@ -4,19 +4,10 @@

This repository contains important tool for `cardano-node` benchmarking - [cardano-tx-generator](https://github.com/input-output-hk/cardano-benchmarking/tree/master/cardano-tx-generator). This is a generator of transactions, both for Byron and Shelley. For more details please [see the project](https://github.com/input-output-hk/cardano-benchmarking/tree/master/cardano-tx-generator).

## Preparation

After first checkout of the repository, update the submodules:

```
$ git submodule update --init
```

## Building on Linux / macOS

Please see our [wiki page](https://github.com/input-output-hk/cardano-benchmarking/wiki/BuildingOnUnix).
Please see [Unix building instructions](https://github.com/input-output-hk/cardano-benchmarking/wiki/BuildingOnUnix).

## Building on Windows

Install _MinGW_ (64 bit) ![MinGW](https://raw.githubusercontent.com/wiki/input-output-hk/cardano-benchmarking/mingw64.png) environment and run `stack` in it to compile _cardano-benchmarking_ and all its dependencies.
(see our [wiki page](https://github.com/input-output-hk/cardano-benchmarking/wiki/BuildingOnWindows))
Please see [Windows building instructions](https://github.com/input-output-hk/cardano-benchmarking/wiki/BuildingOnWindows).
Expand Up @@ -19,10 +19,7 @@ rm node-0*

date --iso-8601=seconds > STARTTIME

if [[ $1 == 'stack' ]]; then
NODE="stack --nix exec cardano-node -- "
shift
elif [[ $1 == 'cabal' ]]; then
if [[ $1 == 'cabal' ]]; then
NODE="cabal v2-run exe:cardano-node -- "
shift
else
Expand Down
Expand Up @@ -19,10 +19,7 @@ rm node-0*

date --iso-8601=seconds > STARTTIME

if [[ $1 == 'stack' ]]; then
NODE="stack --nix exec cardano-node -- "
shift
elif [[ $1 == 'cabal' ]]; then
if [[ $1 == 'cabal' ]]; then
NODE="cabal v2-run exe:cardano-node -- "
shift
else
Expand Down
Expand Up @@ -19,10 +19,7 @@ rm node-0*

date --iso-8601=seconds > STARTTIME

if [[ $1 == 'stack' ]]; then
NODE="stack --nix exec cardano-node -- "
shift
elif [[ $1 == 'cabal' ]]; then
if [[ $1 == 'cabal' ]]; then
NODE="cabal v2-run exe:cardano-node -- "
shift
else
Expand Down
5 changes: 1 addition & 4 deletions benchmarks/chain-sync/benchmark-chain-sync-mainnet.sh
Expand Up @@ -19,10 +19,7 @@ rm node-0*

date --iso-8601=seconds > STARTTIME

if [[ $1 == 'stack' ]]; then
NODE="stack --nix exec cardano-node -- "
shift
elif [[ $1 == 'cabal' ]]; then
if [[ $1 == 'cabal' ]]; then
NODE="cabal v2-run exe:cardano-node -- "
shift
else
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/cluster3nodes/README.md
@@ -1,6 +1,6 @@
## run the benchmark using 'stack'
## run the benchmark

`./start.sh --stack-nix`
`./start.sh`


## analyse timeline of run
Expand All @@ -18,7 +18,7 @@ done

reconstruct timeline:
```
stack --nix run reconstruct-timeline -- ${NNODES} ${OUTDIR} | tee -a ${OUTDIR}/timeline.txt
cabal --enable-nix run reconstruct-timeline -- ${NNODES} ${OUTDIR} | tee -a ${OUTDIR}/timeline.txt
cp timeline.csv ${OUTDIR}/
```

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/cluster3nodes/docs/delegation.md
Expand Up @@ -11,7 +11,7 @@ Make some payment and stake addresses
account for pool rewards

## settings
CLICMD="stack --nix exec cardano-cli --"
CLICMD="cabal --enable-nix exec cardano-cli --"

GENESISDIR=configuration/genesis
MAGIC=42
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/cluster3nodes/docs/pools-keys-certs.md
Expand Up @@ -6,7 +6,7 @@
generate a VRF operational key; and
issue an operational certificate

CLICMD="stack --nix exec cardano-cli --"
CLICMD="cabal --enable-nix exec cardano-cli --"

## make KES (Key Evolving Scheme) and VRF keys

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/cluster3nodes/docs/prepare-genesis.md
Expand Up @@ -10,7 +10,7 @@ The CLI command will reset the networkMagic to "42" every time, so we stick to t

(https://github.com/input-output-hk/cardano-node/blob/master/doc/shelley-genesis.md)

CLICMD="stack --nix exec cardano-cli --"
CLICMD="cabal --enable-nix exec cardano-cli --"

GENESISDIR=genesis01

Expand Down
5 changes: 2 additions & 3 deletions benchmarks/cluster3nodes/docs/quick-start.md
Expand Up @@ -2,9 +2,8 @@

this summarizes somes of the [Pioneer's testnet docs](https://github.com/input-output-hk/cardano-tutorials/tree/master/pioneers-testnet)

CLICMD="stack --nix exec cardano-cli --"
NODECMD="stack --nix exec cardano-node --"

CLICMD="cabal --enable-nix exec cardano-cli --"
NODECMD="cabal --enable-nix exec cardano-node --"

## start a passive node which follow's the node

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/cluster3nodes/docs/transactions.md
@@ -1,4 +1,4 @@
CLICMD="stack --nix exec cardano-cli --"
CLICMD="cabal --enable-nix exec cardano-cli --"


# the index of the genesis UTxO to transfer
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/cluster3nodes/run_explorer.sh
Expand Up @@ -19,4 +19,4 @@ run 'cardano-db-sync' \
--config ${CONFIGFILE} \
--genesis-file ${GENESISJSON} \
--socket-path ${BASEDIR}/sockets/0 \
--schema-dir ${BASEDIR}/../../ext/cardano-db-sync.git/schema \
# --schema-dir ${BASEDIR}/../../ext/cardano-db-sync.git/schema \ # TODO: fix it, there is no more 'ext' dir!
232 changes: 0 additions & 232 deletions benchmarks/cluster3nodes/static/css/w3.css

This file was deleted.

Binary file removed benchmarks/cluster3nodes/static/images/iohk-logo.png
Binary file not shown.
5 changes: 2 additions & 3 deletions benchmarks/shelley3pools/README.md
Expand Up @@ -14,9 +14,8 @@

3. start the benchmark

* with stack: `./start.sh --stack-nix`
* with nix: `./start.sh --nix`
* default, with cabal: `./start.sh `
* default, with cabal: `./start.sh`

4. observe the benchmarking: http://localhost:12799/

Expand All @@ -40,7 +39,7 @@ done

reconstruct timeline:
```
stack --nix run reconstruct-timeline -- ${NNODES} ${OUTDIR} | tee -a ${OUTDIR}/timeline.txt
cabal --enable-nix run reconstruct-timeline -- ${NNODES} ${OUTDIR} | tee -a ${OUTDIR}/timeline.txt
cp timeline.csv ${OUTDIR}/
```

2 changes: 1 addition & 1 deletion benchmarks/shelley3pools/docs/delegation.md
Expand Up @@ -11,7 +11,7 @@ Make some payment and stake addresses
account for pool rewards

## settings
CLICMD="stack --nix exec cardano-cli --"
CLICMD="cabal --enable-nix exec cardano-cli --"

GENESISDIR=configuration/genesis
MAGIC=42
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/shelley3pools/docs/pools-keys-certs.md
Expand Up @@ -6,7 +6,7 @@
generate a VRF operational key; and
issue an operational certificate

CLICMD="stack --nix exec cardano-cli --"
CLICMD="cabal --enable-nix exec cardano-cli --"

## make KES (Key Evolving Scheme) and VRF keys

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/shelley3pools/docs/prepare-genesis.md
Expand Up @@ -10,7 +10,7 @@ The CLI command will reset the networkMagic to "42" every time, so we stick to t

(https://github.com/input-output-hk/cardano-node/blob/master/doc/shelley-genesis.md)

CLICMD="stack --nix exec cardano-cli --"
CLICMD="cabal --enable-nix exec cardano-cli --"

GENESISDIR=genesis01

Expand Down
4 changes: 2 additions & 2 deletions benchmarks/shelley3pools/docs/quick-start.md
Expand Up @@ -2,8 +2,8 @@

this summarizes somes of the [Pioneer's testnet docs](https://github.com/input-output-hk/cardano-tutorials/tree/master/pioneers-testnet)

CLICMD="stack --nix exec cardano-cli --"
NODECMD="stack --nix exec cardano-node --"
CLICMD="cabal --enable-nix exec cardano-cli --"
NODECMD="cabal --enable-nix exec cardano-node --"


## start a passive node which follow's the node
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/shelley3pools/docs/transactions.md
@@ -1,4 +1,4 @@
CLICMD="stack --nix exec cardano-cli --"
CLICMD="cabal --enable-nix exec cardano-cli --"


# the index of the genesis UTxO to transfer
Expand Down
1 change: 0 additions & 1 deletion benchmarks/shelley3pools/run-3pools.sh
Expand Up @@ -4,7 +4,6 @@ BASEDIR=$(realpath $(dirname "$0"))
. ${BASEDIR}/../../scripts/common.sh
. ${BASEDIR}/configuration/parameters

#NODECMD="stack --nix exec cardano-node --"
NODECMD=${NODECMD:-"run cardano-node"}

# the host address and interface the node listens:
Expand Down

0 comments on commit 415e292

Please sign in to comment.