Skip to content

Instantly share code, notes, and snippets.

@jamesmunns
Created November 29, 2019 10:12
Show Gist options
  • Save jamesmunns/470c37a3920c9fa7e1d0b78641180325 to your computer and use it in GitHub Desktop.
Save jamesmunns/470c37a3920c9fa7e1d0b78641180325 to your computer and use it in GitHub Desktop.
james@archx1c6g ➜ spsc-bip-buffer git:(master) cargo +master run --release --example perf --features nightly_perf_example -- 0 2 255 16384 100000 true
Finished release [optimized] target(s) in 0.01s
Running `/tmp/.cargo-build-cache/release/examples/perf 0 2 255 16384 100000 true`
sender done
receiver done
elapsed (nanos) bytes msgs bytes/s msgs/s
2363048796 3264000000 12800000 1381266440.8475463 5416731.140578614
reserve and send:
╭ 6.200000e1 8.400000e1 9.200000e1 1.120000e2 1.600000e2 2.080000e2 2.949120e5 ╮
╰ [ 0.25 0.5 0.75 ]--- 0.95 ------- 0.99 ------- 0.999 -------| max ╯
james@archx1c6g ➜ spsc-bip-buffer git:(master) python
Python 3.7.4 (default, Oct 4 2019, 06:57:26)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 1381266440.8475463 / 1024
1348893.008640182
>>> _ / 1024
1317.2783287501777
>>> _ / 1024
1.2864046179200954
>>>
james@archx1c6g ➜ spsc-bip-buffer git:(master) cargo +master run --release --example perf --features nightly_perf_example -- 0 2 8192 65536 100000 true
Finished release [optimized] target(s) in 0.01s
Running `/tmp/.cargo-build-cache/release/examples/perf 0 2 8192 65536 100000 true`
sender done
receiver done
elapsed (nanos) bytes msgs bytes/s msgs/s
54267709873 104857600000 12800000 1932228211.6822872 235867.70162137295
reserve and send:
╭ 5.120000e2 5.440000e2 5.760000e2 6.080000e2 6.720000e2 1.600000e3 3.604480e5 ╮
╰ [ 0.25 0.5 0.75 ]--- 0.95 ------- 0.99 ------- 0.999 -------| max ╯
james@archx1c6g ➜ spsc-bip-buffer git:(master) python
Python 3.7.4 (default, Oct 4 2019, 06:57:26)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 1932228211.6822872 / 1024
1886941.6129709836
>>> _ / 1024
1842.7164189169762
>>> _ / 1024
1.7995277528486096
@jamesmunns
Copy link
Author

james@archx1c6g ➜  spsc-bip-buffer git:(master) cargo +master run --release --example perf --features nightly_perf_example -- 0 2 255 16384 100000 true
   Compiling spsc-bip-buffer v0.2.2-pre (/home/james/stream2/spsc-bip-buffer)
    Finished release [optimized] target(s) in 0.48s
     Running `/tmp/.cargo-build-cache/release/examples/perf 0 2 255 16384 100000 true`
[examples/perf.rs:55] length = 255
[examples/perf.rs:55] queue_size = 16384
[examples/perf.rs:55] repetitions = 100000
[examples/perf.rs:55] test_correctness = true
receiver start
sender start
sender done
receiver done
elapsed (nanos)	bytes	msgs	bytes/s	msgs/s
782293992	3264000000	12800000	4172344455.3821907	16362135.119145846
reserve and send:
╭   6.800000e1    8.400000e1    1.080000e2    2.320000e2    3.520000e2    4.480000e2    8.192000e4  ╮
╰ [    0.25          0.5           0.75     ]--- 0.95  ------- 0.99  ------- 0.999 -------| max     ╯
james@archx1c6g ➜  spsc-bip-buffer git:(master) cargo +master run --release --example perf --features nightly_perf_example -- 0 2 8192 65536 100000 true
    Finished release [optimized] target(s) in 0.01s
     Running `/tmp/.cargo-build-cache/release/examples/perf 0 2 8192 65536 100000 true`
[examples/perf.rs:55] length = 8192
[examples/perf.rs:55] queue_size = 65536
[examples/perf.rs:55] repetitions = 100000
[examples/perf.rs:55] test_correctness = true
sender start
receiver start
sender done
receiver done
elapsed (nanos)	bytes	msgs	bytes/s	msgs/s
4969836548	104857600000	12800000	21098802543.556007	2575537.4198676767
reserve and send:
╭   7.680000e2    8.000000e2    8.640000e2    9.600000e2    1.216000e3    1.408000e3    5.079040e5  ╮
╰ [    0.25          0.5           0.75     ]--- 0.95  ------- 0.99  ------- 0.999 -------| max     ╯
james@archx1c6g ➜  spsc-bip-buffer git:(master) python
Python 3.7.4 (default, Oct  4 2019, 06:57:26)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 4172344455.3821907
4172344455.3821907
>>> _ / 1024
4074555.1322091706
>>> _ / 1024
3979.057746298018
>>> _ / 1024
3.8857985803691584
>>> 21098802543.556007
21098802543.556007
>>> _ / 1024
20604299.358941413
>>> _ / 1024
20121.386092716224
>>> _ / 1024
19.649791106168188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment