https://github.com/hpac/relative-performance
https://github.com/hpac/relative-performance
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/hpac/relative-performance
- Owner: HPAC
- Created: 2021-02-15T12:16:15.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-16T00:07:18.000Z (over 5 years ago)
- Last Synced: 2025-02-07T15:45:23.896Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 24.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Relative-Performance
Assigns relative scores to a set of equivalent algorithms.
### Input
Measurements of execution times of all equivalent algorithms in JSON format
```python
timings.json
{
"Expression1":{
"0": [ 0.12, 0.23, ..., 0.19 ],
"2": [ 0.12, 0.23, ..., 0.19 ],
..
..
"99": [ 0.12, 0.23, ..., 0.19 ],
},
"Expression2":{
"0": [ 0.12, 0.23, ..., 0.19 ],
"2": [ 0.12, 0.23, ..., 0.19 ],
..
..
"99": [ 0.12, 0.23, ..., 0.19 ],
},
...
}
```
### Parameters
T: Number of repetition of the Sort Function
M: Number of bootstrap iterations in the Compare function
K: Bootstrap sample size in the Compare function
t: Comparison threshold
### Usage
Example
```bash
python3 relativePerformance.py timings.json -T 30 -M 30 -K 5 -t 0.8
```