All Projects → vikyd → Go Cpu Load

vikyd / Go Cpu Load

Licence: mit
Generate CPU load on Windows/Linux/Mac

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Go Cpu Load

Iglance
Free system monitor for OSX and macOS. See all system information at a glance in the menu bar.
Stars: ✭ 1,358 (+6690%)
Mutual labels:  cpu, mac
Hot
Hot is macOS menu bar application that displays the CPU speed limit due to thermal issues.
Stars: ✭ 131 (+555%)
Mutual labels:  cpu, mac
Sensors
A macOS application displaying the thermal, voltage and current sensor values.
Stars: ✭ 70 (+250%)
Mutual labels:  mac, cpu
Macsvg
macSVG - An open-source macOS app for designing HTML5 SVG (Scalable Vector Graphics) art and animation with a WebKit web view ➤➤➤
Stars: ✭ 789 (+3845%)
Mutual labels:  mac
Echo
Echo是一款桌面端调试工具,旨在提高客户端的研发调试效率
Stars: ✭ 818 (+3990%)
Mutual labels:  mac
Electron Widevinecdm
WidevineCDM for Electron
Stars: ✭ 24 (+20%)
Mutual labels:  mac
Yesplaymusic
高颜值的第三方网易云播放器,支持 Windows / macOS / Linux
Stars: ✭ 12,981 (+64805%)
Mutual labels:  mac
Fancontrol.releases
This is the release repository for Fan Control, a highly customizable fan controlling software for Windows.
Stars: ✭ 768 (+3740%)
Mutual labels:  cpu
Instagramfirstcommenter
This bot will post a predefined comment as fast as possible to a new post on the target profile. I used this to successfully win tickets for a big music festival.
Stars: ✭ 26 (+30%)
Mutual labels:  mac
Walle
iOS Application performance monitoring
Stars: ✭ 19 (-5%)
Mutual labels:  cpu
Blue
Easily switch bluetooth peripherals between multiple macs
Stars: ✭ 18 (-10%)
Mutual labels:  mac
Ruby Stats
Fetch statistics about your machine using Ruby
Stars: ✭ 5 (-75%)
Mutual labels:  cpu
Tenyr
Simple, orthogonal 32-bit computer architecture and environment
Stars: ✭ 24 (+20%)
Mutual labels:  cpu
Xnnpack
High-efficiency floating-point neural network inference operators for mobile, server, and Web
Stars: ✭ 808 (+3940%)
Mutual labels:  cpu
Harmony
🎵 Sleek music player for Spotify, SoundCloud, Google Play Music and your local files
Stars: ✭ 841 (+4105%)
Mutual labels:  mac
Mac Setup
Installing Development environment on macOS
Stars: ✭ 6,510 (+32450%)
Mutual labels:  mac
Mac Set Default Apps
A utility to change default applications in macOS
Stars: ✭ 26 (+30%)
Mutual labels:  mac
Infinity Dashboard Modules
Infinity Dashboard Modules
Stars: ✭ 17 (-15%)
Mutual labels:  mac
Ustc Tmips
Stars: ✭ 6 (-70%)
Mutual labels:  cpu
Quark Shell Mac
Quark Shell for Mac helps web developers to create native-like Mac menubar app using HTML and JavaScript without writing any native code.
Stars: ✭ 917 (+4485%)
Mutual labels:  mac

go-cpu-load

Generate CPU load on Windows/Linux/Mac.

Install

go get -u github.com/vikyd/go-cpu-load

or download binary file directly

Usage

example 01: run 30% of all CPU cores for 10 seconds

go-cpu-load -p 30 -t 10

example 02: run 30% of all CPU cores forver

go-cpu-load -p 30

example 03: run 30% of 2 of CPU cores for 10 seconds

go-cpu-load -p 30 -c 2 -t 10
  • all CPU load = (num of para c _ num of p) / (all cores count of CPU _ 100)
  • may not specify cores run the load only, it just promise the all CPU load, and not promise each cores run the same load

Parameters

--coresCount value, -c value   how many cores (optional, default: 8)

--timeSeconds value, -t value  how long (optional, default: 2147483647)

--percentage value, -p value   percentage of each specify cores (required)

--help, -h                     show help

Build

go build

test

go test -v

currently only provide Windows testing

How it runs

  • Giving a range of time(e.g. 100ms)
  • Want to run 30% of all CPU cores
    • 30ms: run (CPU 100%)
    • 70ms: sleep(CPU 0%)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].