Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 case

You 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!