Skip to main content

Generate a benchmark website from a set of benchmark tests

Project description

GenBenchSite

What is GenBenchSite ▶️

GenBenchSite is a platform designed to compare the performance of different libraries and frameworks. It provides a detailed report of each library's speed, precision, and other parameters, making it easier for developers to choose the best library for their project.

You can access the following information on this pages too with extra details : Genbenchsite

GenBenchSite Briefly explained 📰

GenBenchSite is designed to automate the process of comparing and testing different libraries. To achieve this, the test are written in configuration files, then given to GenBenchSite. The tests are executed in a controlled environment, and the results are then analyzed and compiled into easy-to-read reports. These reports are output as HTML files structured and then published on dedicated GitHub pages, where users can access them and see how the different libraries perform in a variety of scenarios. By automating the testing process, the website enables developers to save time and effort when evaluating libraries, and helps them make informed decisions.

graph explaning the structure of the directory needed to create a benchmark

First steps 👣

First of all, you'll need to get the project on your computer. To do so, you can either download the project directly from GitHub,clone it using the following command:

git clone https://github.com/White-On/BenchSite

or download it using the pip command:

pip install genbenchsite

Once you have the project on your computer, you can start creating your own benchmark. To do so, you'll need to create a new directory with a specific structure. The directory should contain 3 subdirectories: targets, themes, and site. The targets directory contains the configuration files for the libraries you want to test. The themes directory contains the configuration files for the tests you want to run. The site directory contains the configuration files for the website.

For more information on the structure of the directory graph explaning the structure of the directory needed to create a benchmark

If you are confused about the structure of the directory, you can use the following command to create a directory with the correct structure: gbs init [name of your benchmark]
Or refer to the Matrix Computation Benchmark for an example of a benchmark.

Setup and Launch 🚀

With the different libraries you are going to experiment on, we recommend to use a virtual environment as it will allow you to install the libraries you need without affecting your global python installation.

You're now ready to launch your benchmark. Depending on where your benchmark is located, either locally or online, on a github repository, or if you want to publish the results on a github page, you'll need to run a different command. To see available commands run:

gbs --help

How we compare the targets 🤔

For the time being, we decided to compare results base on the Lexicographic Maximal Ordering Algorithm (LexMax). Each ranking is based on the number of wins, ties, and losses of each library. The target with the highest number of wins is ranked first, followed by the library with the second-highest number of wins, and so on. In the case of a tie, both libraries are ranked equally. The algorithm does not take into account the magnitude of the wins or losses, only the number of them.

We use it to compare all the data generated by the benchmarking process. For example, we run a task on a set of libraries, and we get the results. Each result is compared to the other result with the same argument, and we get a score for each argument. On the entire task, we get a vector of score for each library. We use the LexMax algorithm to compare the vector of score for each library and we get a ranking of the libraries for that task. We do this for each task and repeat it for the theme and the global ranking.

How to contribute ✍️

The benchmark website is an open-source project, and contributions from the community are welcome. To contribute, users can fork the project on GitHub, make changes to the code, and submit a pull request. Users can also contribute by reporting bugs, suggesting improvements, or sharing their benchmarking results.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genbenchsite-0.0.8.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

genbenchsite-0.0.8-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

File details

Details for the file genbenchsite-0.0.8.tar.gz.

File metadata

  • Download URL: genbenchsite-0.0.8.tar.gz
  • Upload date:
  • Size: 40.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.9

File hashes

Hashes for genbenchsite-0.0.8.tar.gz
Algorithm Hash digest
SHA256 763a60f64ff17133b7ed2ca4489821a2e892d0cd40e635a8ca8acb9ebd1c3fd5
MD5 786b81bdad6bf0f1150344b6536f9a8c
BLAKE2b-256 edbbd5a3cb354341c0d55e1a336a8b8d3672e265308122bcb1df4bbe8e16a302

See more details on using hashes here.

File details

Details for the file genbenchsite-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for genbenchsite-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 668edd94871b484c25ff27efeb813a9521c92b3b6ab2df635b7b13613b266f98
MD5 5bf3138cfb5fa02fb47f338296e735c6
BLAKE2b-256 f01ba0292c3416d25d611d55a4a1f32fa5d5657a17e7c6edb06a157ce37ee0fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page