- CPU: Intel(R) Xeon(R) Silver 4110 CPU @ 2.10GHz
- System: Ubuntu 16.04
- Python: 3.7.3
- Go: 1.14.6
Type | Time Cost | Epoch | Data Size (f64) |
---|---|---|---|
Unix Domain Socket (local file) | 21.60s | 10000 | 224 * 224 * 3 |
Unix Domain Socket (/dev/shm ) in docker container |
18.03s | 10000 | 224 * 224 * 3 |
Unix Domain Socket (local file) in docker container | 18.38s | 10000 | 224 * 224 * 3 |
Plasma (shared memory: 1,000,000,000) | 9.48s | 10000 | 224 * 224 * 3 |
Python 3.8.3 SharedMemory | 7.81s | 10000 | 224 * 224 * 3 |
Multiprocessing Pool | 24.65s | 2 * 5000 | 224 * 224 * 3 |
Multiprocessing Process | 25.29s | 2 * 5000 | 224 * 224 * 3 |
Multiprocessing SharedMemory (py3.8) | 12.58s | 2 * 5000 | 224 * 224 * 3 |
%time for _ in range(epoch):pickle.loads(pickle.dumps(mat)) |
7.72s | 10000 | 224 * 224 * 3 |
Multiprocessing Pool | 9.43s | 2 * 50000 | 300 |
Multiprocessing Process | 3.81s | 2 * 50000 | 300 |
Multiprocessing SharedMemory (py3.8) | 4.34s | 2 * 50000 | 300 |
Unix Domain Socket | 4.69s | 100000 | 300 |
%time for _ in range(epoch):pickle.loads(pickle.dumps(mat)) |
1.58s | 100000 | 300 |