MQTT Python client bench

Results / awscrt

awscrt 0.37.0 crt_event_loop native

version0.37.0
I/O modelcrt_event_loop
implementationnative
stabilitystable
completioncallback
drive shapesync
Python3.12.13

Refused

Declared unsupported by the adapter, never approximated.

Known limitations

aws-c-io does not expose TCP_NODELAY, and a trace of the library's connect shows it never sets it, so Nagle's algorithm stays on. A QoS 1 round trip then waits tens of milliseconds, against hundreds of microseconds at QoS 0, where no acknowledgement is pending: the pattern of Nagle's algorithm waiting for a delayed ACK. This is the library as shipped, reported as measured. It says nothing about the library's publish or receive cost, which the other points show.

Affects: rtt_qos1_fixed, rtt_qos1_fixed_v5.

Every point

pointheadlinevalueCPU / msgpeak RSSflags
pub_qos0_maxmsgs/s16,38077.7 µs27.0 MiB
pub_qos1_maxmsgs/s24,44553.1 µs27.0 MiB
pub_qos1_fixedp50129 µs101 µs26.7 MiB
sub_qos0_maxmsgs/s57,39417.4 µs26.5 MiB
sub_qos1_fixedp50129 µs45.0 µs26.8 MiB
rtt_qos1_fixedp5022.5 ms154 µs26.8 MiB
pub_16k_fixedp502,294 µs143 µs26.7 MiB
idle_connectconnect62.2 ms26.5 MiB
pub_qos1_fixed_v5p50135 µs109 µs26.6 MiB
sub_qos1_fixed_v5p50109 µs65.6 µs26.8 MiB
rtt_qos1_fixed_v5p5020.4 ms163 µs26.8 MiB
sub_qos1_maxmsgs/s47,54621.0 µs26.6 MiBbroker boundbroker queue overflow
pub_qos1_max_v5msgs/s15,25979.9 µs26.6 MiB
sub_qos1_max_v5msgs/s36,93426.8 µs26.7 MiBbroker boundbroker queue overflow
pub_qos1_max_16kmsgs/s19,70163.2 µs29.7 MiB
pub_qos1_fixed_500p50193 µs182 µs26.6 MiB
pub_qos1_fixed_5kp50129 µs79.0 µs27.1 MiB
sub_qos1_fixed_500p50168 µs85.0 µs26.6 MiB
sub_qos1_fixed_5kp50104 µs40.5 µs27.1 MiB
rtt_qos0_fixedp50225 µs164 µs26.8 MiB
pub_qos2_maxmsgs/sunsupported
pub_qos2_fixedp50unsupported
sub_qos2_fixedp50unsupported
pub_fanout_fixedp50129 µs104 µs26.8 MiB
sub_fanin_fixedp50125 µs45.0 µs26.9 MiB
sub_filters_fixedp50unsupported
duplex_qos1_fixedp50705 µs85.6 µs26.8 MiB
pub_qos1_fixed_tlsp50143 µs110 µs27.5 MiB
sub_qos1_fixed_tlsp50135 µs53.2 µs27.6 MiB
idle_connect_tlsconnect107.6 ms27.3 MiB
pub_qos1_fixed_v5_propsp50143 µs119 µs26.7 MiB
sub_qos1_fixed_v5_propsp50113 µs68.1 µs26.8 MiB
pub_qos1_fixed_v5_aliasp50unsupported
sub_qos1_max_v5_rm16msgs/sunsupported
pub_64k_fixedp501,343 µs195 µs27.0 MiB
pub_1m_fixedp503,080 µs2,506 µs31.4 MiB
pub_rl_boundariesp506,160 µs1,854 µs38.4 MiB