Giter Site home page Giter Site logo

eat's Introduction

Introduce

I'm a CPU and memory eating monster🦕

Developer will encounter the need to quickly occupy CPU and memory, I am also deeply troubled, so I developed a tool named eat to help you quickly occupy a specified amount of CPU and memory.

Usage

eat -c 4            # eating 4 CPU core
eat -c 100%         # eating all CPU core
eat -m 4g           # eating 4GB memory
eat -m 20m          # eating 20MB memory
eat -m 100%         # eating all memory
eat -c 2.5 -m 1.5g  # eating 2.5 CPU core and 1.5GB memory
eat -c 3 -m 200m    # eating 3 CPU core and 200MB memory
eat -c 100% -m 100% # eating all CPU core and memory

Tips:

  • Using <Ctrl> + C to stop eating and release CPU and memory

Build

go build -o eat

介绍

我是一个吃CPU和内存的怪兽🦕

开发者们经常会遇到需要快速占用 CPU 和内存的需求,我也是。所以我开发了一个名为 eat 的小工具来快速占用指定数量的 CPU 和内存。

使用

eat -c 4            # 占用4个CPU核
eat -c 100%         # 占用所有CPU核
eat -m 4g           # 占用4GB内存
eat -m 20m          # 占用20MB内存
eat -m 100%         # 占用所有内存
eat -c 2.5 -m 1.5g  # 占用2.5个CPU核和1.5GB内存
eat -c 3 -m 200m    # 占用3个CPU核和200MB内存
eat -c 100% -m 100% # 占用所有CPU核和内存

提示:

  • 使用<Ctrl> + C来停止占用并释放CPU和内存

构建

go build -o eat

eat's People

Contributors

shawn-bluce 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.