#benchmark #power #laptop #battery #performance #measurement #efficiency

bin+lib efficiency-benchmark

A simple benchmarking tool for measuring the efficiency of your laptop

8 releases

0.2.5 Apr 3, 2024
0.2.4 Apr 2, 2024
0.1.1 Mar 30, 2024

#142 in Profiling

MIT license

19KB
359 lines

Efficiency Benchmark

Description

This benchmark it meant to measure laptop cpu efficiency and poower consumption by contineuosly compiling something until it runs out of battery. The benchmark create a directory called "benchmark" where you runned the command and stores this in theree:

  • The repository
  • A copy of the repo to build
  • A file containing the score

Installation

cargo install efficiency-benchmark

Usage

To run it with default options just run

efficiency-benchmark 

Help command


$ efficiency-benchmark --help

Usage: efficiency-benchmark [OPTIONS]
            
    Options:
        --help, -h    Show this help message
        --repo, -r    Set the repository URL to clone
        --build, -b   Set the build command
    
    If no args provided it will use by default:
        repo-url   -> https://github.com/rust-lang/rustlings.git
        build-cmd  -> cargo build


    This benchmark is meant for laptops,
    It will infinitely loop compiling something until it runs out of battery
    That's how this benchmark works

Dependencies

~2–13MB
~91K SLoC