<commit_before>## Web3 Sandbox

This is a sandbox app that can be used to throw load at an instance of ethermint.
It assumes that you already have Node.JS, [yarn](https://yarnpkg.com/) and [Ethermint](https://github.com/tendermint/ethermint/blob/master/docker/Dockerfile#L6) installed.

### Running
1. `yarn install` to install node_modules
1. `npm run ethermint:init` to initialise a fresh chain
1. `npm run ethermint:start` to start ethermint
1. `npm start` to run the load generation app
1. Or `npm run contracts:deploy` to deploy a test contract<commit_msg>Explain how to change configuration<commit_after>## Web3 Sandbox

This is a sandbox app that can be used to throw load at an instance of ethermint.
It assumes that you already have Node.JS, [yarn](https://yarnpkg.com/), [Ethermint](https://github.com/tendermint/ethermint/blob/master/docker/Dockerfile#L6) and `solc` installed.

### Running
1. `yarn install` to install node_modules
1. `npm run ethermint:init` to initialise a fresh chain
1. `npm run ethermint:start` to start ethermint, then either:
  1. `npm start` to run 1000 x "send ether" transactions (~4.5 seconds on my machine)
  1. `npm run contracts:deploy` to deploy 10 x instances of a smart contract (~10 seconds on my machine)

### Configuration
* Edit `src/config.js` to change the desired number of iterations
* Prefix `npm` commands with the following to point to a different node: `GETH_URL=http://some-node:8545`
{'fraction_non_alphanumeric': 0.0984060984060984, 'fraction_numerical': 0.019404019404019403, 'mean_word_length': 4.752988047808765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2664610', 'n_tokens_mistral': 481, 'n_tokens_neox': 448, 'n_words': 189}