benchmark-scoreboard/README.md
2017-04-19 01:31:14 +03:00

1.1 KiB

scoreboard-benchmark

Travis CI

This is a simple web app used for an university projects.

You will need Python 2.6+ or Python 3.3+ to run this app. Flask doesn't support Python 3.2.

It should provide a simple score board display for some benchmarking data which is gathered from another application.

Installing

To install and run the application, you must do the following:

Rename the config.lock.py to config.py, so you can safely modify the config.py and still have config.lock.py as a template. and update the file to match your configuration settings.

Then run:

pip install -r requirements.txt
python setup.py install
nohup python application.py &

Running Tests

In the root directory, run the following command:

python -m unittest

Posting data

You can post data using curl. There are no restrictions on whoever can post data.

curl -H "Content-Type: application/json" -X POST -d '{"gpu":"GPU DUMMY TEXT","cpu":"CPU DUMMY TEXT","log":"DETAILED LOG","score": 1}' http://localhost:5000/result