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