GithubHelp home page GithubHelp logo

nschloe / stressberry Goto Github PK

View Code? Open in Web Editor NEW
310.0 12.0 26.0 7.89 MB

Stress tests for the Raspberry Pi :sweat_smile:

License: GNU General Public License v3.0

Makefile 6.60% Python 93.40%
raspberry-pi stress-test temperature pypi python python3

stressberry's Introduction

stressberry

Stress tests and temperature plots for the Raspberry Pi

PyPi Version PyPI pyversions GitHub stars PyPi downloads

gh-actions codecov Code style: black

There are a million ways to cool down your Raspberry Pi: Small heat sinks, specific cases, and some extreme DIY solutions. stressberry is a package for testing the core temperature under different loads, and it produces nice plots which can easily be compared.

Raspberry Pi 4B

active passive
custom case with fans (@flyingferret, #21) KKSB case (@JohBod, #31) Argon One case (@jholloway, #37)
hex wrench case (@patrickpoirier51, #45) CooliPi (@CooliPi, #47, #48) low-profile ice tower case (@leonhess, #54)
Flirc case (@RichardKav, #73) Armor Case

Raspberry Pi 3B+

FLIRC case

The famous FLIRC case. Thanks to @RichardKav for the measurements!

Raspberry Pi 3B

No fans, heat sinks, or case. Your average acrylic case from eBay. FastTech case, full-body aluminum alloy with heat pads for CPU and RAM.

How to

To run stressberry on your computer, simply install it with

[sudo] apt install stress
python3 -m pip install stressberry

Users of Arch Linux ARM can install from the official repos

[sudo] pacman -S stressberry

and run it with

stressberry-run out.dat
stressberry-plot out.dat -o out.png

(Use MPLBACKEND=Agg stressberry-plot out.dat -o out.png if you're running the script on the Raspberry Pi itself.)

If it your computer can't find the stressberry tools after installation, you might have to add the directory $HOME/.local/bin to your path:

export PATH=$PATH:/home/pi/.local/bin

(You can also put this line in your .bashrc.)

The run lets the CPU idle for a bit, then stresses it with maximum load for 5 minutes, and lets it cool down afterwards. The entire process takes 10 minutes. The resulting data is displayed to a screen or, if specified, written to a PNG file.

If you'd like to submit your own data for display here, feel free to open an issue and include the data file, a photograph of your setup, and perhaps some further information.

Testing

To run the tests, just check out this repository and type

pytest

License

This software is published under the GPLv3 license.

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.