Git Product home page Git Product logo

cpucheck's Introduction

CPUcheck

Go Version License

It is an easy CPU check tool.

  • There are N workers (where N is runtime.NumCPU).
  • A worker gets pseudo random bytes and calculates SHA-256 sum for it.
  • The cycle repeats for every worker during the time period.

Build

Use common go-way to build:

go build .

Examples of cross-compile builds:

# MS windows
GOOS=windows GOARCH=amd64 go build -o cpucheck_windows.exe .

# MacOS
GOOS=darwin GOARCH=amd64 go build -o cpucheck_macos .

Test

Github Actions is running for every master git-push.

go test -race -bench=. -benchmem -cover -v .

Parameters

Usage of ./cpucheck:
  -a string
        algorithm (sha256, md5, gzip, all) (default "sha256")
  -s int
        data size (bytes) (default 65536)
  -t int
        time duration (seconds) (default 10)

Example

Processors      4
Op. system      linux
Architecture    amd64
Algorithm       sha256
Data size       65536 bytes
Duration        10 seconds
. . . . . . . . . .
Results
Worker 1        1038
Worker 2        1029
Worker 3        1038
Worker 4        1016
---
Total                   4121
Avg per second          412
Avg per processor       1030
Avg per proc/second     103

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.