Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nwalters512/241-malloc-scripts
Pulls and analyzes data from the UIUC CS 241 malloc contest
https://github.com/nwalters512/241-malloc-scripts
malloc uiuc
Last synced: 3 days ago
JSON representation
Pulls and analyzes data from the UIUC CS 241 malloc contest
- Host: GitHub
- URL: https://github.com/nwalters512/241-malloc-scripts
- Owner: nwalters512
- Created: 2017-03-01T23:13:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-03T22:06:24.000Z (over 7 years ago)
- Last Synced: 2024-10-10T03:10:52.435Z (27 days ago)
- Topics: malloc, uiuc
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 241-malloc-scripts
Pulls and analyzes data from the [UIUC CS 241 malloc contest](http://cs241grader.web.engr.illinois.edu/malloc/).
Course staff were kind enough to expose the contest results in an easily-digestible JSON file: [http://cs241grader.web.engr.illinois.edu/malloc/data/results.json](http://cs241grader.web.engr.illinois.edu/malloc/data/results.json). This script downloads this file and then reports on hwo you're performing.
## Usage
After cloning the repo, run `npm install` in the project root. This will install all required dependencies.
Open `malloc.js` and specify your nickname in the `nickname` variable at the top of the file. Then, run `npm start` from the project root. The output will be printed to your console and nicely formatted.
Currently, this script reports the following:
* Your overall ranking
* Your ranking for each individual test case
* Your score for each test case as a percentage of glibc's performance (lower is better)
* The top score and that score's nickname for each test caseYou can optionally pass the flag `--omitfailing` to skip people who are failing any of the tests when computing rankings. To run with `npm`, run it like `npm start -- --omitfailing`.
This script uses the formulas from the source code of the contest page. Those formulas are apparently changing frequently, and they currently do some hacky things like hardcoding the results of glibc and adding in various "fudge factors". The formulas in this script are not guaranteed to match the current formulas. Use at your own risk!