From 5cc03d2ff6c1cf1bd2489705a7ce7c63079193af Mon Sep 17 00:00:00 2001 From: adrianogarcia Date: Tue, 23 Nov 2021 01:15:50 -0300 Subject: [PATCH] More content on how to run --- docs/source/how_to_run.rst | 110 ++++++++++++++++++++++++++++++++++++- docs/source/index.rst | 3 + 2 files changed, 112 insertions(+), 1 deletion(-) diff --git a/docs/source/how_to_run.rst b/docs/source/how_to_run.rst index 8d25acc..4c9e2f8 100644 --- a/docs/source/how_to_run.rst +++ b/docs/source/how_to_run.rst @@ -79,4 +79,112 @@ The table bellow shows all commands that can be used through the CLI. | **list_input** | It lists all inputs registered for a given application and their respective alias.
| ``-app ``(optional) | | | (Attention: You can only use pre-registered alias after downloading the respective inputs.
| | | | See the section about inputs below). | | -+----------------+--------------------------------------------------------------------------------------------------+---------------------------------------------------------+ \ No newline at end of file ++----------------+--------------------------------------------------------------------------------------------------+---------------------------------------------------------+ + +How to use +------------ +In this framework you can simply run the benchmarks that are already provided or implement your own specific benchmark. +To run a given benchmark version, you can follow these steps: + +Run: ./spbench install (you can use -app to install only a specific application) +Run: ./spbench register + +Run: ./spbench list (this shows the list of available benchmarks) +Run: ./spbench compile -benchmark + +Run: ./spbench exec -benchmark -input ... [optional_commands] + + +To implement your own benchmark version, you must run new -> edit -> configure + +Inputs +------------ +In the exec step you must choose a given input for the benchmark. +These inputs can be found and downloaded in the inputs/ directory. +You can run the 'get_inputs.sh' script to automatically download them. +cd inputs/ && bash get_inputs.sh +You can use your own input or choose a given one. +You can also use an alias as short option. +These alias are linked to the inputs provided by SPBench and you can see them running: +./spbench list_inputs +SPBench also allows you to create an alias for your custom inputs. +./spbench new_input -input_id -app -input "" + +How to run example +------------ +./spbench exec -version [version_name] -input [small, medium, large] + + +Performance metrics +------------ +With SPBench you can evaluate four performance metrics in different ways. +- Latency +- Throughput +- CPU usage (%) +- Memory usage (KB) + +Optional arguments +------------ + +There are four OPTIONAL arguments you can select when running the 'exec' command: + +- ``-monitor