GithubHelp home page GithubHelp logo

bbengfort / compile-workload Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 107 KB

Python script to create a compiler workload and evaluate external performance.

License: MIT License

Shell 0.61% Python 4.52% Jupyter Notebook 94.87%

compile-workload's Introduction

Compile Workload

Python script to create a compiler workload and evaluate external performance.

This script is intended to be used with MemFS to create a workload for evaluating system performance. The primary workload script does the following activities in the specified directory:

  1. Clone a repository
  2. Make/build in the repository
  3. Stat every file
  4. Report time and stats

Because compilation of a project is different on every system, project-specific steps are embedded in the workload file. The following projects are supported:

  1. Redis (76MB, 591 files, 137,475 LOC)
  2. Postgres (422MB, 4,807 files, 910,948 LOC)
  3. Nginx (62MB, 440 files, 155,056 LOC)
  4. Apache Web Server (362MB, 4,059 files, 503,006 LOC)
  5. Ruby (197MB, 3,281 files, 918,052 LOC)
  6. Python 3 (382MB, 3,570 files, 931,814 LOC)

Running a workload is as follows:

$ python3 workload.py -o results.csv -p nginx /tmp/testdir

This will run the workload on the Nginx repository, building in /tmp/testdir and appending the results to results.csv. Various options and defaults are provided and can be further inspected with:

$ python3 workload.py --help

Note that this script depends on many system and compiling dependencies to be available. Because they were already available on my system, I don't necessarily have a list of that I can expose through a requirements file. However, at a minimum, Git is required as are Xcode developer tools on a Macbook Pro.

For testing MemFS, I've created a simple script that runs through a single instance of the testing protocol. This should be used with care, however, as it is built for a specific system.

compile-workload's People

Contributors

bbengfort avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.