diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-08-21 16:43:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-21 16:43:37 +0800 |
commit | 2c816b5d636b8f7decd234582470a3d4c6b4a93a (patch) | |
tree | 5eff9d5f035dda8e3b2632ecce41f3c192e90f21 /README.md | |
parent | e8f99372159a89fb3128b870de1733a4777a5144 (diff) | |
download | dexon-consensus-2c816b5d636b8f7decd234582470a3d4c6b4a93a.tar.gz dexon-consensus-2c816b5d636b8f7decd234582470a3d4c6b4a93a.tar.zst dexon-consensus-2c816b5d636b8f7decd234582470a3d4c6b4a93a.zip |
simulation: add simulation with scheduler (#71)
- Add new field in test.Event: HistoryIndex
HistoryIndex allow us to access them by their position in event history.
- Record local time in test.App when receiving events.
- Add statisitics module for slices of test.Event.
- add new command line utility *dexcon-simulation-with-scheduler
to verify the execution time of core.Consensus.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -42,6 +42,8 @@ make pre-submit ## Simulation +### Simulation with Nodes connected by HTTP + 1. Setup the configuration under `./test.toml` 2. Compile and install the cmd `dexon-simulation` @@ -49,8 +51,23 @@ make pre-submit make ``` -4. Run simulation: +3. Run simulation: ``` dexcon-simulation -config test.toml -init ``` + +### Simulation with test.Scheduler + +1. Setup the configuration under `./test.toml` +2. Compile and install the cmd `dexon-simulation-with-scheduler` + +``` +make +``` + +3. Run simulation with 10 workers: + +``` +dexcon-simulation-with-scheduler -config test.toml -workercount 10 +``` |