Skip to content

Collection of benchmaks for unix/linux platform, mainly in C language.

Notifications You must be signed in to change notification settings

paulborile/linux-benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linux-benchmarks

Collection of benchmaks for unix/linux platform, mainly in C language.

Drystones

$ gcc -o dhry -O dhry.c
$ ./dhry
Dhrystone (version 1.1) time for 100000000 passes = 18
This machine benchmarks at 5555555 dhrystones/second

Wetstones

$ gcc -o whets -DUNIX_Old -O whets.c -lm
$ ./whets
##########################################
Single Precision C/C++ Whetstone Benchmark

Calibrate
       0.01 Seconds          1   Passes (x 100)
       0.05 Seconds          5   Passes (x 100)
       0.21 Seconds         25   Passes (x 100)
       1.01 Seconds        125   Passes (x 100)
       5.43 Seconds        625   Passes (x 100)

Use 11505  passes (x 100)

      Single Precision C/C++ Whetstone Benchmark

Loop content                  Result              MFLOPS      MOPS   Seconds

N1 floating point     -1.12441420555114746       556.413              0.397
N2 floating point     -1.12241148948669434       375.309              4.120
N3 if then else        1.00000000000000000                 692.307    1.720
N4 fixed point        12.00000000000000000               30200.682    0.120
N5 sin,cos etc.        0.49904659390449524                  41.928   22.830
N6 floating point      0.99999988079071045       164.916             37.630
N7 assignments         3.00000000000000000                 381.026    5.580

....

Fstones

$ gcc -o fstones -O fstones.c
$ ./fstones --read --write --rread --rwrite --size 10 --blocksize 128 --file BULK --dir 200000
** fstones 3.0 - (C) 1989-2022 Paul Stephen Borile
Blocksize for read/write operations is 128K
Phase 1 ** Sequential file creation 
	   Creating a 10 GB file
	   Elapsed time 21 - 487M/sec
	   Average write service time 0.256344527 ms.
Phase 2 ** Sequential file reading 
	   Elapsed time 29 - 353M/sec
	   Average read service time 0.353999585 ms.
Phase 3 ** Random file read 
	   Elapsed time 104 - 98M/sec
	   Average seek-read time 0.009918213 ms.
Phase 4 ** Random file write 
	   Elapsed time 329 - 31M/sec
	   Average seek-write time 0.031375885 ms.
Phase 5 ** Directory test 
	   Elapsed time 2 - index 100000/sec

Ack - Ackerman function (http://en.wikipedia.org/wiki/Ackermann_function)

$ gcc -o ack -O ack.c
$ time ./ack

Enjoy

About

Collection of benchmaks for unix/linux platform, mainly in C language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages