This repository is a Demo for GenBenchSite, a Benchmarking tools for libraries.
project.ini
: Contains the configuration for the project. It is used to configure the website and the benchmarking process.res/
: Contains the resources for the website, such as logos, images, etc. The script will copy the content of this folder to thepages/assets/
folder.targets/
: Contains the targets to be benchmarked. Each target is a folder containing atarget.ini
file containing the configuration for the target and adescription.html
to describe the target (the file be be added to the page of the target).themes/
: Contains the themes for the task. Each theme is a folder containing atheme.ini
file containing the configuration for the theme and adescription.html
to describe the theme (the file be be added to the page of the theme).In each theme folder:task/
: Contains the tasks for the theme. Each task is a folder containing atask.ini
file containing the configuration for the task and adescription.html
to describe the task (the file be be added to the page of the task).There's also aextra.html
file that will be added to the page of the task. thedata/
folder is where you can put the data used by your test scripts .Each task folder also contains folders for each target to be benchmarked. Each target folder contains the test scripts for the target. ( arun
script and abefore
script if needed ). Theevaluation
script is used to evaluate the results of the benchmarking process found in theoutput/
folder.
====================
pages/
: Contrains the pages of the website generated by the benchmarking process.
- Get the GenBenchSite package either by downloading with the command
pip install genbenchsite
it or by cloning it. Then you'll have access to thegbs
command with the help of the commandgbs help
. - Create a template folder for your project with the command
gbs init <nameBenchmark>
- Edit the files to configure your project.
- Run the benchmarking process with the command
gbs benchmark -I <pathToTemplateFolder>
( the default path is the current directory ). The process will generate the data in theresults.json
folder. - Run the website generation process with the command
gbs website -I <pathToTemplateFolder>
( the default path is the current directory ). The process will generate the website in thepages/
folder.
You'll find the website in the pages folder and is composed of index.html
, the main pages content/
, with all the pages generated by the benchmarking process,script/
for all the javascript files, style/
with all the css files, and assets/
with all the assets needed for the website.
the main page is index.html
and should look like this:
You can navigate through the pages using the navigation bar on the left side of the page. The data created by the benchmarking process can be downloaded using the Raw Data button on the top right of the page.