1.2.2. Modern C++ API

The following tests have been performed by executing RTI Perftest C++11 Publisher and a Subscriber between two nodes, connected to a switch via Ethernet. The communication has been restricted to a single interface and the transport has been set to UDPv4.

Find information about the hardware, network, and command-line parameters after each of the tests.

1.2.2.1. Unkeyed, UDPv4 10Gbps Network, C++11

The graph below shows the one-way latency without load between a Publisher and a Subscriber running in two Linux nodes in a 10Gbps network. The numbers are for best-effort as well as strict reliable reliability scenarios.

Note

We use the median (50th percentile) instead of the average in order to get a more stable measurement that does not account for spurious outliers. We also calculate the average value and other percentile values, which can be seen in the Detailed Statistics section below.

Detailed Statistics

The following tables contain the raw numbers presented by RTI Perftest. These numbers are the exact output with no further processing.

  • Best Effort

Sample Size (Bytes)

Avg (μs)

Std (μs)

Min (μs)

Max (μs)

50% (μs)

90% (μs)

99% (μs)

99.99% (μs)

99.9999% (μs)

32

20

0.6

19

164

20

21

21

28

164

64

21

0.6

20

101

21

21

22

29

101

128

21

0.5

20

133

21

21

22

29

133

256

22

0.7

21

208

22

22

23

30

208

512

22

0.6

21

60

22

23

24

31

60

1024

24

0.4

23

87

24

24

25

32

87

8192

44

0.7

43

247

44

44

45

55

247

63000

109

1.0

108

272

109

110

112

127

272

  • Reliable

Sample Size (Bytes)

Avg (μs)

Std (μs)

Min (μs)

Max (μs)

50% (μs)

90% (μs)

99% (μs)

99.99% (μs)

99.9999% (μs)

32

22

0.7

21

102

22

22

25

30

102

64

22

0.6

21

58

22

22

25

30

58

128

22

0.7

21

173

22

23

25

33

173

256

23

0.7

22

103

23

23

26

33

103

512

24

0.7

22

88

23

24

27

33

88

1024

25

0.7

24

120

25

25

28

34

120

8192

45

0.7

44

125

45

46

48

55

125

63000

111

1.6

109

199

111

112

118

138

199

100000

153

3.0

150

283

152

156

167

191

283

500000

577

21.0

514

985

584

589

596

654

985

1048576

1110

73.3

1020

2015

1033

1183

1193

1659

2015

1548576

1685

81.9

1503

2861

1723

1733

1745

2861

2861

4194304

4265

69.0

4222

7581

4268

4282

4295

7581

7581

10485760

12195

274.7

12109

20365

12204

12240

12258

20365

20365


Perftest Scripts

To produce these tests, we executed RTI Perftest for C++98. The exact commands used can be found here:

Publisher Side

 1sudo /set_lat_mode.sh
 2
 3echo EXECUTABLE IS $1
 4export executable=$1
 5
 6echo OUTPUT PATH IS $2
 7export output_folder=$2
 8
 9export exec_time=30
10export nic=172.16.0.1
11export pub_string="-pub \
12        -transport UDPv4 \
13        -nic $nic \
14        -noPrint \
15        -noOutputHeaders \
16        -exec $exec_time \
17        -noXML\
18        -latencyTest"
19
20mkdir -p $output_folder
21
22echo ">> UNKEYED BE"
23export my_file=$output_folder/lat_udpv4_pub_unkeyed_be.csv
24touch $my_file
25for DATALEN in 32 64 128 256 512 1024 8192 63000; do
26    export command="taskset -c 0 \
27    $executable -best -datalen $DATALEN $pub_string"
28    echo $command
29    $command >> $my_file;
30    sleep 3;
31done
32sleep 5;
33
34echo ">> UNKEYED REL"
35export my_file=$output_folder/lat_udpv4_pub_unkeyed_rel.csv
36touch $my_file
37for DATALEN in 32 64 128 256 512 1024 8192 63000 100000 500000 1048576 1548576 4194304 10485760; do
38    export command="taskset -c 0 \
39    $executable -datalen $DATALEN $pub_string"
40    echo $command
41    $command >> $my_file;
42    sleep 3;
43done
44sleep 5;
45
46echo ">> KEYED BE"
47export my_file=$output_folder/lat_udpv4_pub_keyed_be.csv
48touch $my_file
49for DATALEN in 32 64 128 256 512 1024 8192 63000; do
50    export command="taskset -c 0 \
51    $executable -best -keyed -instances 100000 -datalen $DATALEN $pub_string"
52    echo $command
53    $command >> $my_file;
54    sleep 3;
55done
56sleep 5;
57
58echo ">> KEYED REL"
59export my_file=$output_folder/lat_udpv4_pub_keyed_rel.csv
60touch $my_file
61for DATALEN in 32 64 128 256 512 1024 8192 63000; do
62    export command="taskset -c 0 \
63    $executable -keyed -instances 100000 -datalen $DATALEN $pub_string"
64    echo $command
65    $command >> $my_file;
66    sleep 3;
67done

Subscriber Side

 1sudo /set_lat_mode.sh
 2
 3echo EXECUTABLE IS $1
 4export executable=$1
 5
 6echo OUTPUT PATH IS $2
 7export output_folder=$2
 8
 9export nic=172.16.0.2
10export sub_string="-sub \
11        -transport UDPv4 \
12        -nic $nic \
13        -noPrint \
14        -noOutputHeaders \
15        -noXML"
16
17mkdir -p $output_folder
18
19echo ">> UNKEYED BE"
20export my_file=$output_folder/lat_udpv4_sub_unkeyed_be.csv
21touch $my_file
22for DATALEN in 32 64 128 256 512 1024 8192 63000; do
23    export command="taskset -c 0 \
24    $executable -best $sub_string -datalen $DATALEN"
25    echo $command
26    $command >> $my_file;
27    sleep 10;
28done
29sleep 5;
30
31echo ">> UNKEYED REL"
32export my_file=$output_folder/lat_udpv4_sub_unkeyed_rel.csv
33touch $my_file
34for DATALEN in 32 64 128 256 512 1024 8192 63000 100000 500000 1048576 1548576 4194304 10485760; do
35    export command="taskset -c 0 \
36    $executable $sub_string -datalen $DATALEN"
37    echo $command
38    $command >> $my_file;
39    sleep 10;
40done
41sleep 5;
42
43echo ">> KEYED BE"
44export my_file=$output_folder/lat_udpv4_sub_keyed_be.csv
45touch $my_file
46for DATALEN in 32 64 128 256 512 1024 8192 63000; do
47    export command="taskset -c 0 \
48    $executable -best -keyed -instances 100000 $sub_string -datalen $DATALEN"
49    echo $command
50    $command >> $my_file;
51    sleep 10;
52done
53sleep 5;
54
55echo ">> KEYED REL"
56export my_file=$output_folder/lat_udpv4_sub_keyed_rel.csv
57touch $my_file
58for DATALEN in 32 64 128 256 512 1024 8192 63000; do
59    export command="taskset -c 0 \
60    $executable -keyed -instances 100000 $sub_string -datalen $DATALEN"
61    echo $command
62    $command >> $my_file;
63    sleep 10;
64done

Test Hardware

The following hardware was used to perform these tests:

Linux Nodes

Processor: Intel® Xeon® E-2186G 3.8GHz, 12M cache, 6C/12T, turbo (95W)
RAM: 16GB 2666MT/s DDR4 ECC UDIMM
NIC 1: Intel X550 Dual Port 10GbE BASE-T Adapter, PCIe Full Height
NIC 2: Intel Ethernet I350 Dual Port 1GbE BASE-T Adapter, PCIe Low Profile
OS: Ubuntu 18.04 -- gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

Switch

Dell Networking S4048T-ON, 48x 10GBASE-T and 6x 40GbE QSFP+ ports, IO to PSU air, 2x AC PSU, OS9

1.2.2.2. Keyed, UDPv4 10Gbps Network, C++11

The graph below shows the one-way latency without load between a Publisher and a Subscriber running in two Linux nodes in a 10Gbps network. The numbers are for best-effort as well as strict reliable reliability scenarios.

Note

We use the median (50th percentile) instead of the average in order to get a more stable measurement that does not account for spurious outliers. We also calculate the average value and other percentile values, which can be seen in the Detailed Statistics section below.

Detailed Statistics

The following tables contain the raw numbers presented by RTI Perftest. These numbers are the exact output with no further processing.

  • Best Effort

Sample Size (Bytes)

Avg (μs)

Std (μs)

Min (μs)

Max (μs)

50% (μs)

90% (μs)

99% (μs)

99.99% (μs)

99.9999% (μs)

32

23

0.8

22

207

23

24

25

33

207

64

24

0.8

22

206

23

24

26

33

206

128

24

0.7

23

205

24

25

26

33

205

256

24

0.8

23

205

24

25

26

34

205

512

25

0.8

24

206

25

26

27

35

206

1024

27

0.8

26

208

26

27

29

36

208

8192

47

0.9

46

227

46

48

49

57

227

63000

113

1.4

111

291

112

114

116

150

291

  • Reliable

Sample Size (Bytes)

Avg (μs)

Std (μs)

Min (μs)

Max (μs)

50% (μs)

90% (μs)

99% (μs)

99.99% (μs)

99.9999% (μs)

32

25

0.8

24

200

24

26

29

36

200

64

25

0.8

24

204

24

26

29

35

204

128

26

0.9

24

205

25

26

29

36

205

256

26

0.9

24

201

25

26

29

37

201

512

27

0.9

25

207

26

27

30

38

207

1024

28

0.9

27

207

28

29

31

39

207

8192

48

0.9

47

226

48

49

51

62

226

63000

114

2.1

111

291

113

116

122

140

291


Perftest Scripts

To produce these tests, we executed RTI Perftest for C++98. The exact commands used can be found here:

Publisher Side

 1sudo /set_lat_mode.sh
 2
 3echo EXECUTABLE IS $1
 4export executable=$1
 5
 6echo OUTPUT PATH IS $2
 7export output_folder=$2
 8
 9export exec_time=30
10export nic=172.16.0.1
11export pub_string="-pub \
12        -transport UDPv4 \
13        -nic $nic \
14        -noPrint \
15        -noOutputHeaders \
16        -exec $exec_time \
17        -noXML\
18        -latencyTest"
19
20mkdir -p $output_folder
21
22echo ">> UNKEYED BE"
23export my_file=$output_folder/lat_udpv4_pub_unkeyed_be.csv
24touch $my_file
25for DATALEN in 32 64 128 256 512 1024 8192 63000; do
26    export command="taskset -c 0 \
27    $executable -best -datalen $DATALEN $pub_string"
28    echo $command
29    $command >> $my_file;
30    sleep 3;
31done
32sleep 5;
33
34echo ">> UNKEYED REL"
35export my_file=$output_folder/lat_udpv4_pub_unkeyed_rel.csv
36touch $my_file
37for DATALEN in 32 64 128 256 512 1024 8192 63000 100000 500000 1048576 1548576 4194304 10485760; do
38    export command="taskset -c 0 \
39    $executable -datalen $DATALEN $pub_string"
40    echo $command
41    $command >> $my_file;
42    sleep 3;
43done
44sleep 5;
45
46echo ">> KEYED BE"
47export my_file=$output_folder/lat_udpv4_pub_keyed_be.csv
48touch $my_file
49for DATALEN in 32 64 128 256 512 1024 8192 63000; do
50    export command="taskset -c 0 \
51    $executable -best -keyed -instances 100000 -datalen $DATALEN $pub_string"
52    echo $command
53    $command >> $my_file;
54    sleep 3;
55done
56sleep 5;
57
58echo ">> KEYED REL"
59export my_file=$output_folder/lat_udpv4_pub_keyed_rel.csv
60touch $my_file
61for DATALEN in 32 64 128 256 512 1024 8192 63000; do
62    export command="taskset -c 0 \
63    $executable -keyed -instances 100000 -datalen $DATALEN $pub_string"
64    echo $command
65    $command >> $my_file;
66    sleep 3;
67done

Subscriber Side

 1sudo /set_lat_mode.sh
 2
 3echo EXECUTABLE IS $1
 4export executable=$1
 5
 6echo OUTPUT PATH IS $2
 7export output_folder=$2
 8
 9export nic=172.16.0.2
10export sub_string="-sub \
11        -transport UDPv4 \
12        -nic $nic \
13        -noPrint \
14        -noOutputHeaders \
15        -noXML"
16
17mkdir -p $output_folder
18
19echo ">> UNKEYED BE"
20export my_file=$output_folder/lat_udpv4_sub_unkeyed_be.csv
21touch $my_file
22for DATALEN in 32 64 128 256 512 1024 8192 63000; do
23    export command="taskset -c 0 \
24    $executable -best $sub_string -datalen $DATALEN"
25    echo $command
26    $command >> $my_file;
27    sleep 10;
28done
29sleep 5;
30
31echo ">> UNKEYED REL"
32export my_file=$output_folder/lat_udpv4_sub_unkeyed_rel.csv
33touch $my_file
34for DATALEN in 32 64 128 256 512 1024 8192 63000 100000 500000 1048576 1548576 4194304 10485760; do
35    export command="taskset -c 0 \
36    $executable $sub_string -datalen $DATALEN"
37    echo $command
38    $command >> $my_file;
39    sleep 10;
40done
41sleep 5;
42
43echo ">> KEYED BE"
44export my_file=$output_folder/lat_udpv4_sub_keyed_be.csv
45touch $my_file
46for DATALEN in 32 64 128 256 512 1024 8192 63000; do
47    export command="taskset -c 0 \
48    $executable -best -keyed -instances 100000 $sub_string -datalen $DATALEN"
49    echo $command
50    $command >> $my_file;
51    sleep 10;
52done
53sleep 5;
54
55echo ">> KEYED REL"
56export my_file=$output_folder/lat_udpv4_sub_keyed_rel.csv
57touch $my_file
58for DATALEN in 32 64 128 256 512 1024 8192 63000; do
59    export command="taskset -c 0 \
60    $executable -keyed -instances 100000 $sub_string -datalen $DATALEN"
61    echo $command
62    $command >> $my_file;
63    sleep 10;
64done

Test Hardware

The following hardware was used to perform these tests:

Linux Nodes

Processor: Intel® Xeon® E-2186G 3.8GHz, 12M cache, 6C/12T, turbo (95W)
RAM: 16GB 2666MT/s DDR4 ECC UDIMM
NIC 1: Intel X550 Dual Port 10GbE BASE-T Adapter, PCIe Full Height
NIC 2: Intel Ethernet I350 Dual Port 1GbE BASE-T Adapter, PCIe Low Profile
OS: Ubuntu 18.04 -- gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

Switch

Dell Networking S4048T-ON, 48x 10GBASE-T and 6x 40GbE QSFP+ ports, IO to PSU air, 2x AC PSU, OS9