github.com/true-sqn/fabric@v2.1.1+incompatible/core/ledger/kvledger/benchmark/scripts/sample_params.sh (about)

     1  #!/bin/bash
     2  #
     3  # Copyright IBM Corp. All Rights Reserved.
     4  #
     5  # SPDX-License-Identifier: Apache-2.0
     6  #
     7  
     8  # OUTPUT_DIR_ROOT is the folder where the experiments results are persisted
     9  OUTPUT_DIR_ROOT="/tmp/fabric/ledgersPerfTests/results"
    10  # DataDir is used as ledger data folder
    11  DataDir="/tmp/fabric/ledgersPerfTests/data"
    12  export useCouchDB="false"
    13  UseJSONFormat="false"
    14  NumChains=10
    15  NumParallelTxPerChain=10
    16  NumKVs=10000
    17  NumTotalTx=10000
    18  NumWritesPerTx=4
    19  NumReadsPerTx=4
    20  BatchSize=50
    21  KVSize=200
    22  
    23  #####################################################################################################################
    24  # Following variables controls what experiments to run. Typically, you would wish to run only selected experiments. 
    25  # Comment out the variables that you do not want to run experiments for
    26  #####################################################################################################################
    27  
    28  # Whether to run experiment with default params above (see function 'shrunWithDefaultParams' in file runbenchmarks.sh)
    29  RunWithDefaultParams=true
    30  # Run experiments with varying "NumParallelTxPerChain" (keeping remaining params as default - see function 'varyNumParallelTxPerChain' in file runbenchmarks.sh)
    31  ArrayNumParallelTxPerChain=(1 5 10 20 50 100 500 2000)
    32  # Run experiments with varying "NumChains" (keeping remaining params as default - see function 'varyNumChains' in file runbenchmarks.sh)
    33  ArrayNumChains=(1 5 10 20 50 100 500 2000)
    34  # Run experiments with varying "NumWritesPerTx" (keeping remaining params as default - see function 'varyNumWritesPerTx' in file runbenchmarks.sh)
    35  ArrayNumWritesPerTx=(1 2 5 10 20)
    36  # Run experiments with varying "NumReadsPerTx" (keeping remaining params as default - see function 'varyNumReadsPerTx' in file runbenchmarks.sh)
    37  ArrayNumReadsPerTx=(1 2 5 10 20)
    38  # Run experiments with varying "KVSize" (keeping remaining params as default - see function 'varyKVSize' in file runbenchmarks.sh)
    39  ArrayKVSize=(100 200 500 1000 2000)
    40  # Run experiments with varying "BatchSize" (keeping remaining params as default - see function 'varyBatchSize' in file runbenchmarks.sh)
    41  ArrayBatchSize=(10 20 100 500)
    42  # Run experiments with varying "NumTotalTx" (keeping remaining params as default - see function 'varyNumTxs' in file runbenchmarks.sh)
    43  ArrayNumTxs=(100000 200000 500000 1000000)
    44  # Whether to run experiment with large amount of data (see function 'runLargeDataExperiment' in file runbenchmarks.sh)
    45  RunLargeDataExperiment=true