GoHyperPi

command module
v0.0.0-...-2ab09c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

GoHyperPi

GoHyperPi - Portable software written in the Go language. It can calculate the Pi value for a given number of bits on a multicore machine!

Install

go install github.com/Lofanmi/GoHyperPi@latest

Usage

GoHyperPi -n 20 -output=true
CPU Name: Apple M1
CPU Physical Cores: 8
CPU Threads Per Core: 1
CPU Logical Cores: 8
CPU Family: 458787763 Model: 0 Vendor ID: VendorUnknown
CPU Features: AESARM,ASIMD,ASIMDDP,ASIMDHP,ASIMDRDM,ATOMICS,CRC32,DCPOP,FCMA,FP,FPHP,GPA,JSCVT,LRCPC,PMULL,SHA1,SHA2,SHA3,SHA512
CPU CacheLine bytes: 128
CPU L1 Data Cache: 65536 bytes
CPU L1 Instruction Cache: 131072 bytes
CPU L2 Cache: 4194304 bytes
CPU L3 Cache: -1 bytes
CPU Frequency: 0 Hz
OS: darwin arm64

3.14159265358979323846
GoHyperPi -n=100000
CPU Name: Apple M1
CPU Physical Cores: 8
CPU Threads Per Core: 1
CPU Logical Cores: 8
CPU Family: 458787763 Model: 0 Vendor ID: VendorUnknown
CPU Features: AESARM,ASIMD,ASIMDDP,ASIMDHP,ASIMDRDM,ATOMICS,CRC32,DCPOP,FCMA,FP,FPHP,GPA,JSCVT,LRCPC,PMULL,SHA1,SHA2,SHA3,SHA512
CPU CacheLine bytes: 128
CPU L1 Data Cache: 65536 bytes
CPU L1 Instruction Cache: 131072 bytes
CPU L2 Cache: 4194304 bytes
CPU L3 Cache: -1 bytes
CPU Frequency: 0 Hz
OS: darwin arm64

Result:
[duration:20.111804625s] [single-core:10062.50] [multi-core:79555.27] [rate:7.91]

Enjoy :)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL