C Basic benchmark test using threads and processes
Budget: $10 – $30 USD
Benchmark - 1 - throughput
In this benchmark we will measure how much data we can transfer between processes and/or threads.
1. Create the first task (Process or thread) + 2nd task.
2. Randomize 100MB of data.
3. Calculate checksum of data.
4. Take time in both tasks
5. Transfer the data to the second task.
6. read the data and take Check sum in the 2nd process
6. Take time
7. Ensure that data is identical (using checksum)
8. Use the following methods and measure them
A) TCP/IPv4 Socket
B) UDS - Stream socket
C) UDP/IPv6 Socket
D) UDS - Dgram socket
E) MMAP
F) PIPE
8) shared memory between threads.
Report the result of all 8 benchmarks.
In this benchmark we will measure how much data we can transfer between processes and/or threads.
1. Create the first task (Process or thread) + 2nd task.
2. Randomize 100MB of data.
3. Calculate checksum of data.
4. Take time in both tasks
5. Transfer the data to the second task.
6. read the data and take Check sum in the 2nd process
6. Take time
7. Ensure that data is identical (using checksum)
8. Use the following methods and measure them
A) TCP/IPv4 Socket
B) UDS - Stream socket
C) UDP/IPv6 Socket
D) UDS - Dgram socket
E) MMAP
F) PIPE
8) shared memory between threads.
Report the result of all 8 benchmarks.