Here you can find measurement tools for the UI module.
## Build
Build the app with ```-DCMAKE_BUILD_TYPE=Release``` (please read the root README).
## Benchmarks
**Script**
After building the app, copy files ```benchmarks.py``` and ```benchmarks.sh``` to the ```dist``` directory. Run the ```benchmarks.sh```
script.
The script will run Benchmarks 1 and 2 with the parameters ```BUTTON_COUNTS, TEXT_SIZES, BUFFER_SIZES``` for a ```TIME``` of 10 seconds, defined in the script.
Afterward, the python script will create ```benchmark1.csv``` and ```benchmark2.csv```. Containing the FPS measurements.
**Manual**
Build the app as previously mentioned, then run the binary with the following arguments:
- benchmark - Specifies which benchmark to run (1 or 2).
- duration - Duration of the test, after which the app will quit. If it is set to 0 the program will not quit.
- button\_count - Specifies the number of buttons to instantiate (used for benchmark 1).
- text\_size - Specifies how many letters will be generated for the text (used for benchmark 2).
- buffer\_size - Specifies the maximum size of a text Buffer, used for splitting the text into multiple Buffers (for benchmark 2).
Afterwards, the output will be written to ```stdout```.