Coder Social home page Coder Social logo

mojo-benchmarks's Introduction

Benchmarking Mojo

Note: this project is part of Bachelor's thesis of Red Kalab in 2024. Full work can be found here.

Instructions for running

Build the Dockerfile with command such as docker build . -t mojo-bench. Image will take ~5GB on disk. To run full benchmarks, with each alg+bench taking ~5 minutes run docker run -v ./bench_times:/app/bench_times mojo-bench ./_bench.py full run_name 300. This configuration would take approximately 10 hours in total. Resulting benchmark timings will be saved in ./bench_times/run_name. These results can be copied into ./results/data and evaluated with the notebook in the ./results folder.

Customization

The bench utility takes 3 parameters, benchmarks to run, run name and time to run. Valid options for benchmarks to run are full, all, softmax, matmul, crc16 and quicksort.

  • full - runs all benchmarks on all defined sizes
  • all - runs all benchmarks on default size
  • softmax/matmul/crc16/quicksort - runs given algorithm on default size

Run name determines the folder name of where the results are stored. Time to run signifies time to run for each algorithm+size combination. The _bench.py script contains the default/full sizes for benchmarking sizes, and is fully customizable.

mojo-benchmarks's People

Contributors

redkinda avatar smerity avatar

Watchers

 avatar

Forkers

smerity

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.