Skip to content

schlangenprogrammiernacht/io_speedtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple I/O Speedtest

This repo contains the code to test I/O roundtrip times on a POSIX system. Currently shared memory is implemented as a data exchange method.

Building

Simply run

./make.sh

Running

cd build/master
./master

How it works

The master process sets up a POSIX shared memory (basically a mmaped file on tmpfs) and starts the worker process.

Then the master process fills the shared memory with a number of integers and notifies the worker through STDIN when everything is prepared. The worker then calculates the sum of the numbers and reports it back through STDOUT.

This process is repeated a few times. The master process measures and shows the average response time.

License

MIT. (see LICENSE file)

About

A small test for IPC performance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published