Skip to content

alfredicus/test_speed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

CPU Benchmark Tool

A multi-threaded CPU benchmark that measures floating-point and integer performance.

Build

g++ -std=c++11 -O2 -pthread cpu_benchmark.cpp -o cpu_benchmark

Usage

./cpu_benchmark [duration_seconds]
  • duration_seconds - Optional. Time per test in seconds (default: 5)

Example

./cpu_benchmark 10

Output

The benchmark runs four tests:

  • Floating-point operations (all cores)
  • Integer operations (all cores)
  • Floating-point operations (single thread)
  • Integer operations (single thread)

Results show MOPS (Million Operations per Second) for each test.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages