summaryrefslogtreecommitdiff
path: root/www/performance
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-24 17:15:57 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-24 17:15:57 -0400
commita368e48f9b8fb1e27542fb82f2adf656ac432b7f (patch)
tree07ddc8295a5dceb37bc7f8762b0876b602e85ad8 /www/performance
parent5d3130b97bafe2f5441e21859d7ae41dc1ced717 (diff)
downloadgpsd-a368e48f9b8fb1e27542fb82f2adf656ac432b7f.tar.gz
Add whole-cycle profiling to show vendor binary orotocols don't cut latency.
Diffstat (limited to 'www/performance')
-rw-r--r--www/performance/graph8.pngbin0 -> 6566 bytes
-rw-r--r--www/performance/graph9.pngbin0 -> 6180 bytes
-rw-r--r--www/performance/performance.xml31
-rw-r--r--www/performance/profile8.txt102
-rw-r--r--www/performance/profile9.txt102
5 files changed, 234 insertions, 1 deletions
diff --git a/www/performance/graph8.png b/www/performance/graph8.png
new file mode 100644
index 00000000..fd13408b
--- /dev/null
+++ b/www/performance/graph8.png
Binary files differ
diff --git a/www/performance/graph9.png b/www/performance/graph9.png
new file mode 100644
index 00000000..8cf4b898
--- /dev/null
+++ b/www/performance/graph9.png
Binary files differ
diff --git a/www/performance/performance.xml b/www/performance/performance.xml
index 475551e2..b02b87d0 100644
--- a/www/performance/performance.xml
+++ b/www/performance/performance.xml
@@ -599,8 +599,37 @@ computed RS232 time is in fact tracking actual transmission time pretty
closely. It also confirms that the most effective way to decrease total
fix latency is simply to bump up the transmission speed.
</para>
-</sect2>
+<para>It is equally instructive to compare these graphs with graphs
+taken from the same GPS, at the dme speed, running in NMEA rather than
+vendor binary mode. Consider, for example, these:</para>
+
+<figure><title>Per-cycle latency report, NMEA mode, 9600bps</title>
+<mediaobject>
+ <imageobject>
+ <imagedata fileref='graph8.png'/>
+ </imageobject>
+</mediaobject>
+</figure>
+
+<para>(Raw data is <ulink url='profile8.txt'>here</ulink>.)</para>
+
+<figure><title>Per-cycle latency report, NMEA mode, 19200bps</title>
+<mediaobject>
+ <imageobject>
+ <imagedata fileref='graph9.png'/>
+ </imageobject>
+</mediaobject>
+</figure>
+
+<para>(Raw data is <ulink url='profile8.txt'>here</ulink>.)</para>
+
+<para>The comb-shaped pattern in these graphs reflect the additional
+transmission time for $GPGSV every 5 cycles. We can see clearly that
+the vendory binary protocol significantly cuts neither latency nor
+total bandwidth required.</para>
+
+</sect2>
</sect1>
<sect1><title>Conclusions</title>
diff --git a/www/performance/profile8.txt b/www/performance/profile8.txt
new file mode 100644
index 00000000..35d2a6e6
--- /dev/null
+++ b/www/performance/profile8.txt
@@ -0,0 +1,102 @@
+# Analyzed latency, 2011-09-24T20:57:31, Generic NMEA, 9600 8N1, cycle 1s
+#- Tag - ----- Fix time ----- - Chars - - Latency - -- RS232 -- --Analysis- --- Recv --
+ RMC 1316897851.924999952 185 0.041912079 0.192708333 0.252104998 0.323405027
+ RMC 1316897852.924999952 185 0.041919947 0.192708333 0.252122164 0.254208088
+ RMC 1316897853.924000025 185 0.042912006 0.192708333 0.253100872 0.254040003
+ RMC 1316897854.924000025 356 0.042913914 0.370833333 0.443109035 0.444084883
+ RMC 1316897855.924000025 185 0.042912006 0.192708333 0.253109932 0.254047871
+ RMC 1316897856.924000025 188 0.042917013 0.195833333 0.253105879 0.254076958
+ RMC 1316897857.924000025 185 0.042913914 0.192708333 0.253162861 0.254109859
+ RMC 1316897858.924000025 185 0.042927980 0.192708333 0.253122091 0.254106998
+ RMC 1316897859.924000025 356 0.042912006 0.370833333 0.443312883 0.444289923
+ RMC 1316897860.924000025 184 0.044230938 0.191666667 0.253104925 0.254122019
+ RMC 1316897861.924000025 187 0.042912006 0.194791667 0.253108025 0.254709959
+ RMC 1316897862.924000025 185 0.042912006 0.192708333 0.253099918 0.254127026
+ RMC 1316897863.924000025 184 0.042911053 0.191666667 0.253118038 0.254069090
+ RMC 1316897864.924000025 356 0.042912960 0.370833333 0.443103075 0.444082022
+ RMC 1316897865.924000025 199 0.044167042 0.207291667 0.263103008 0.264061928
+ RMC 1316897866.924000025 191 0.052975893 0.198958333 0.263062954 0.264314890
+ RMC 1316897867.924000025 190 0.052917004 0.197916667 0.263109922 0.264051914
+ RMC 1316897868.924000025 190 0.052910089 0.197916667 0.263114929 0.264131069
+ RMC 1316897869.923000097 362 0.053911924 0.377083333 0.464136839 0.465076923
+ RMC 1316897870.923000097 193 0.053911924 0.201041667 0.264145851 0.265129805
+ RMC 1316897871.923000097 188 0.053965807 0.195833333 0.264083862 0.264829874
+ RMC 1316897872.923000097 190 0.053910017 0.197916667 0.264063835 0.264848948
+ RMC 1316897873.923000097 190 0.053941965 0.197916667 0.266104937 0.267050982
+ RMC 1316897874.923000097 361 0.053918839 0.376041667 0.464155912 0.465156794
+ RMC 1316897875.923000097 190 0.053931952 0.197916667 0.264360905 0.265516996
+ RMC 1316897876.923000097 190 0.053975821 0.197916667 0.274086952 0.274906874
+ RMC 1316897877.923000097 191 0.044003963 0.198958333 0.264122009 0.265064001
+ RMC 1316897878.923000097 189 0.046137810 0.196875000 0.274199009 0.275206804
+ RMC 1316897879.923000097 361 0.053910017 0.376041667 0.464067936 0.464816809
+ RMC 1316897880.923000097 190 0.053952932 0.197916667 0.264064789 0.265493870
+ RMC 1316897881.923000097 190 0.053954840 0.197916667 0.264065981 0.264812946
+ RMC 1316897882.923000097 191 0.053911924 0.198958333 0.264110804 0.265094995
+ RMC 1316897883.923000097 189 0.053929806 0.196875000 0.264145851 0.265079021
+ RMC 1316897884.923000097 370 0.043934822 0.385416667 0.464109898 0.464896917
+ RMC 1316897885.923000097 190 0.053913832 0.197916667 0.264117956 0.265067816
+ RMC 1316897886.921999931 183 0.064932108 0.190625000 0.265110016 0.266093969
+ RMC 1316897887.921999931 190 0.054913044 0.197916667 0.275110006 0.276039124
+ RMC 1316897888.921999931 191 0.054931164 0.198958333 0.265110970 0.266088009
+ RMC 1316897889.921999931 362 0.054913998 0.377083333 0.465106010 0.467010975
+ RMC 1316897890.921999931 198 0.046270132 0.206250000 0.265102148 0.266070127
+ RMC 1316897891.921999931 199 0.046168089 0.207291667 0.265136003 0.266062975
+ RMC 1316897892.921999931 199 0.045319080 0.207291667 0.265103102 0.266055107
+ RMC 1316897893.921999931 199 0.046188116 0.207291667 0.265186071 0.266204119
+ RMC 1316897894.921999931 370 0.046174049 0.385416667 0.465109110 0.466051102
+ RMC 1316897895.921999931 194 0.054919004 0.202083333 0.275110960 0.276036978
+ RMC 1316897896.921999931 197 0.054911137 0.205208333 0.275102139 0.276043177
+ RMC 1316897897.921999931 199 0.046161175 0.207291667 0.265103102 0.265993118
+ RMC 1316897898.921999931 199 0.046226025 0.207291667 0.265110016 0.266093969
+ RMC 1316897899.921999931 365 0.054912090 0.380208333 0.465110064 0.466026068
+ RMC 1316897900.921999931 199 0.044912100 0.207291667 0.265104055 0.266069174
+ RMC 1316897901.921999931 192 0.054912090 0.200000000 0.265104055 0.266009092
+ RMC 1316897902.921000004 189 0.065908909 0.196875000 0.266104937 0.267081976
+ RMC 1316897903.921000004 199 0.046015024 0.207291667 0.266102076 0.267158031
+ RMC 1316897904.921000004 360 0.055907011 0.375000000 0.466156960 0.466969013
+ RMC 1316897905.921000004 198 0.045907021 0.206250000 0.266227961 0.267235994
+ RMC 1316897906.921000004 199 0.045913935 0.207291667 0.266119957 0.267107964
+ RMC 1316897907.921000004 199 0.047241926 0.207291667 0.266182899 0.267370939
+ RMC 1316897908.921000004 199 0.045917034 0.207291667 0.266099930 0.267112970
+ RMC 1316897909.921000004 361 0.055918932 0.376041667 0.466080904 0.466830969
+ RMC 1316897910.921000004 188 0.056437016 0.195833333 0.266172886 0.267199993
+ RMC 1316897911.921000004 189 0.059950113 0.196875000 0.266133070 0.267101049
+ RMC 1316897912.921000004 181 0.065926075 0.188541667 0.266128063 0.267143965
+ RMC 1316897913.921000004 190 0.055913925 0.197916667 0.266108990 0.267051935
+ RMC 1316897914.921000004 361 0.055917025 0.376041667 0.466103077 0.467114925
+ RMC 1316897915.921000004 190 0.055912971 0.197916667 0.266110897 0.267122984
+ RMC 1316897916.921000004 189 0.066400051 0.196875000 0.266105890 0.267179012
+ RMC 1316897917.921000004 189 0.055917025 0.196875000 0.266108036 0.267111063
+ RMC 1316897918.920000076 181 0.066917896 0.188541667 0.267107964 0.268157959
+ RMC 1316897919.920000076 352 0.067001820 0.366666667 0.477114916 0.478127003
+ RMC 1316897920.920000076 181 0.066912889 0.188541667 0.267174959 0.268455982
+ RMC 1316897921.920000076 182 0.056990862 0.189583333 0.268657923 0.269657850
+ RMC 1316897922.920000076 182 0.066926003 0.189583333 0.267132998 0.268203974
+ RMC 1316897923.920000076 189 0.058167934 0.196875000 0.267104864 0.268100977
+ RMC 1316897924.920000076 359 0.066959858 0.373958333 0.467106819 0.468145847
+ RMC 1316897925.920000076 189 0.066916943 0.196875000 0.268608809 0.269618034
+ RMC 1316897926.920000076 194 0.056905031 0.202083333 0.277052879 0.277890921
+ RMC 1316897927.920000076 189 0.056905985 0.196875000 0.267064810 0.267876863
+ RMC 1316897928.920000076 188 0.056905985 0.195833333 0.267108917 0.268180847
+ RMC 1316897929.920000076 370 0.046911955 0.385416667 0.467125893 0.468149900
+ RMC 1316897930.920000076 197 0.048159838 0.205208333 0.267442942 0.268431902
+ RMC 1316897931.920000076 188 0.056907892 0.195833333 0.267074823 0.267833948
+ RMC 1316897932.920000076 187 0.056911945 0.194791667 0.267056942 0.267850876
+ RMC 1316897933.920000076 188 0.056910038 0.195833333 0.267107010 0.268038988
+ RMC 1316897934.920000076 368 0.046912909 0.383333333 0.457110882 0.458112001
+ RMC 1316897935.918999910 196 0.047913074 0.204166667 0.268105984 0.269031048
+ RMC 1316897936.918999910 196 0.047913074 0.204166667 0.268113136 0.269090176
+ RMC 1316897937.918999910 196 0.047912121 0.204166667 0.268125057 0.269052029
+ RMC 1316897938.918999910 196 0.047914982 0.204166667 0.268105030 0.269077063
+ RMC 1316897939.918999910 370 0.047913074 0.385416667 0.468095064 0.468839169
+ RMC 1316897940.918999910 194 0.049410105 0.202083333 0.268066168 0.268841028
+ RMC 1316897941.918999910 187 0.049442053 0.194791667 0.271138191 0.272047043
+ RMC 1316897942.918999910 186 0.067986012 0.193750000 0.268471003 0.269448042
+ RMC 1316897943.918999910 187 0.049487114 0.194791667 0.273059130 0.274183035
+ RMC 1316897944.918999910 357 0.057934046 0.371875000 0.468114138 0.469089985
+ RMC 1316897945.918999910 186 0.057928085 0.193750000 0.268105984 0.269042015
+ RMC 1316897946.918999910 196 0.049556017 0.204166667 0.269680023 0.270914078
+ RMC 1316897947.918999910 187 0.057922125 0.194791667 0.268120050 0.269289017
+ RMC 1316897948.918999910 186 0.057914972 0.193750000 0.270905972 0.271879196
+ RMC 1316897949.918999910 354 0.047921181 0.368750000 0.450472116 0.451369047
+ RMC 1316897950.918999910 182 0.049160004 0.189583333 0.258115053 0.259095192
diff --git a/www/performance/profile9.txt b/www/performance/profile9.txt
new file mode 100644
index 00000000..09af4ad4
--- /dev/null
+++ b/www/performance/profile9.txt
@@ -0,0 +1,102 @@
+# Analyzed latency, 2011-09-24T20:26:30, Generic NMEA, 19200 8N1, cycle 1s
+#- Tag - ----- Fix time ----- - Chars - - Latency - -- RS232 -- --Analysis- --- Recv --
+ RMC 1316895991.038000107 185 0.058912992 0.096354167 0.159091949 0.164496899
+ RMC 1316895992.038000107 185 0.058913946 0.096354167 0.159089804 0.160807848
+ RMC 1316895993.038000107 197 0.048910856 0.102604167 0.159446955 0.160533905
+ RMC 1316895994.038000107 368 0.048910856 0.191666667 0.249092817 0.250088930
+ RMC 1316895995.038000107 197 0.048910856 0.102604167 0.159092903 0.160135984
+ RMC 1316895996.038000107 197 0.048911810 0.102604167 0.159086943 0.160154819
+ RMC 1316895997.038000107 197 0.048910856 0.102604167 0.159267902 0.160406828
+ RMC 1316895998.038000107 182 0.058913946 0.094791667 0.159094810 0.160305977
+ RMC 1316895999.038000107 350 0.058914900 0.182291667 0.249102831 0.250263929
+ RMC 1316896000.038000107 178 0.064208984 0.092708333 0.159193993 0.160602808
+ RMC 1316896001.038000107 179 0.048986912 0.093229167 0.159092903 0.160130978
+ RMC 1316896002.038000107 179 0.058912992 0.093229167 0.159102917 0.160183907
+ RMC 1316896003.038000107 195 0.048910856 0.101562500 0.159096003 0.160143852
+ RMC 1316896004.038000107 363 0.048913956 0.189062500 0.249099970 0.250285864
+ RMC 1316896005.038000107 193 0.048914909 0.100520833 0.149142981 0.150755882
+ RMC 1316896006.038000107 196 0.048918009 0.102083333 0.159109831 0.160134792
+ RMC 1316896007.036999941 192 0.049911976 0.100000000 0.150097132 0.151287079
+ RMC 1316896008.036999941 190 0.049911022 0.098958333 0.150091171 0.151076078
+ RMC 1316896009.036999941 361 0.049911976 0.188020833 0.250098944 0.250969172
+ RMC 1316896010.036999941 191 0.049911022 0.099479167 0.150098085 0.151112080
+ RMC 1316896011.036999941 191 0.049914122 0.099479167 0.150088072 0.150872946
+ RMC 1316896012.036999941 190 0.049911976 0.098958333 0.150078058 0.150870085
+ RMC 1316896013.036999941 186 0.039916039 0.096875000 0.140167952 0.141194105
+ RMC 1316896014.036999941 358 0.049911976 0.186458333 0.250113010 0.251049042
+ RMC 1316896015.036999941 184 0.039911032 0.095833333 0.140105963 0.141072035
+ RMC 1316896016.036999941 185 0.049911022 0.096354167 0.150094986 0.151088953
+ RMC 1316896017.036999941 185 0.039911985 0.096354167 0.140107155 0.141050100
+ RMC 1316896018.036999941 186 0.049913168 0.096875000 0.150094986 0.151083946
+ RMC 1316896019.036999941 358 0.049915075 0.186458333 0.250096083 0.250981092
+ RMC 1316896020.036999941 187 0.049913168 0.097395833 0.150096178 0.151113987
+ RMC 1316896021.036999941 187 0.049911976 0.097395833 0.150074959 0.150840044
+ RMC 1316896022.036999941 191 0.049911022 0.099479167 0.150094032 0.151083946
+ RMC 1316896023.036999941 192 0.049911976 0.100000000 0.150094986 0.151047945
+ RMC 1316896024.036000013 364 0.050915003 0.189583333 0.251098871 0.252045870
+ RMC 1316896025.036000013 187 0.050910950 0.097395833 0.151093006 0.152054071
+ RMC 1316896026.036000013 187 0.050941944 0.097395833 0.151130915 0.151993990
+ RMC 1316896027.036000013 186 0.050911903 0.096875000 0.151099920 0.152049065
+ RMC 1316896028.036000013 186 0.050913095 0.096875000 0.151100874 0.152116060
+ RMC 1316896029.036000013 361 0.050910950 0.188020833 0.251105070 0.252021074
+ RMC 1316896030.036000013 187 0.050910950 0.097395833 0.151102066 0.152127028
+ RMC 1316896031.036000013 186 0.050911903 0.096875000 0.151093960 0.152025938
+ RMC 1316896032.036000013 185 0.050911903 0.096354167 0.151400089 0.153237104
+ RMC 1316896033.036000013 189 0.050910950 0.098437500 0.151093006 0.152021885
+ RMC 1316896034.036000013 356 0.050911903 0.185416667 0.251096964 0.252022982
+ RMC 1316896035.036000013 185 0.050971031 0.096354167 0.151089907 0.152029037
+ RMC 1316896036.036000013 190 0.050915003 0.098958333 0.151108980 0.152127028
+ RMC 1316896037.036000013 185 0.050910950 0.096354167 0.151092052 0.152009010
+ RMC 1316896038.036000013 184 0.050910950 0.095833333 0.151093006 0.152083874
+ RMC 1316896039.036000013 356 0.050910950 0.185416667 0.251096010 0.251966953
+ RMC 1316896040.035000086 185 0.051911831 0.096354167 0.152102947 0.153081894
+ RMC 1316896041.035000086 185 0.051911831 0.096354167 0.152096987 0.153047800
+ RMC 1316896042.035000086 185 0.051920891 0.096354167 0.152097940 0.153105021
+ RMC 1316896043.035000086 190 0.051911831 0.098958333 0.152092934 0.153007984
+ RMC 1316896044.035000086 358 0.041984797 0.186458333 0.252096891 0.253328800
+ RMC 1316896045.035000086 186 0.041985989 0.096875000 0.152179956 0.153344870
+ RMC 1316896046.035000086 186 0.051911831 0.096875000 0.152096987 0.153086901
+ RMC 1316896047.035000086 185 0.051911831 0.096354167 0.152093887 0.153033972
+ RMC 1316896048.035000086 186 0.051911831 0.096875000 0.152107000 0.153100014
+ RMC 1316896049.035000086 357 0.051910877 0.185937500 0.252102852 0.253006935
+ RMC 1316896050.035000086 186 0.051915884 0.096875000 0.152100801 0.153093815
+ RMC 1316896051.035000086 189 0.051910877 0.098437500 0.152096033 0.153026819
+ RMC 1316896052.035000086 189 0.051910877 0.098437500 0.152094841 0.153083801
+ RMC 1316896053.035000086 189 0.051911831 0.098437500 0.152096987 0.153028965
+ RMC 1316896054.035000086 356 0.051910877 0.185416667 0.252098799 0.253033876
+ RMC 1316896055.035000086 184 0.051911831 0.095833333 0.152100801 0.153040886
+ RMC 1316896056.033999920 185 0.053030968 0.096354167 0.153392076 0.154407978
+ RMC 1316896057.033999920 185 0.052914143 0.096354167 0.153095007 0.154030085
+ RMC 1316896058.033999920 184 0.052914143 0.095833333 0.153092146 0.154078007
+ RMC 1316896059.033999920 357 0.052911997 0.185937500 0.253100157 0.254417181
+ RMC 1316896060.033999920 184 0.052914143 0.095833333 0.153095007 0.154080153
+ RMC 1316896061.033999920 183 0.052914143 0.095312500 0.153098106 0.154030085
+ RMC 1316896062.033999920 184 0.052913189 0.095833333 0.153094053 0.154083967
+ RMC 1316896063.033999920 188 0.052915096 0.097916667 0.153105974 0.154054165
+ RMC 1316896064.033999920 354 0.052915096 0.184375000 0.253094196 0.254027128
+ RMC 1316896065.033999920 183 0.052914143 0.095312500 0.153113127 0.154043198
+ RMC 1316896066.033999920 183 0.052914143 0.095312500 0.153097153 0.154092073
+ RMC 1316896067.033999920 191 0.052914143 0.099479167 0.153115034 0.154060125
+ RMC 1316896068.033999920 183 0.052915096 0.095312500 0.153092146 0.154081106
+ RMC 1316896069.033999920 354 0.052913189 0.184375000 0.253100157 0.253995180
+ RMC 1316896070.033999920 183 0.053009033 0.095312500 0.153100967 0.154083014
+ RMC 1316896071.033999920 182 0.052911997 0.094791667 0.153094053 0.154007196
+ RMC 1316896072.033999920 182 0.052915096 0.094791667 0.153097153 0.154091120
+ RMC 1316896073.032999992 199 0.043910980 0.103645833 0.154164076 0.155303955
+ RMC 1316896074.032999992 370 0.043910980 0.192708333 0.254096031 0.255013943
+ RMC 1316896075.032999992 183 0.053910971 0.095312500 0.154093027 0.155009031
+ RMC 1316896076.032999992 182 0.053911924 0.094791667 0.154096127 0.155069113
+ RMC 1316896077.032999992 199 0.043916941 0.103645833 0.154098034 0.155116081
+ RMC 1316896078.032999992 199 0.043911934 0.103645833 0.154093981 0.155091047
+ RMC 1316896079.032999992 369 0.043911934 0.192187500 0.254094124 0.255034924
+ RMC 1316896080.032999992 198 0.043910980 0.103125000 0.154097080 0.155118942
+ RMC 1316896081.032999992 199 0.043910980 0.103645833 0.154093027 0.155046940
+ RMC 1316896082.032999992 199 0.043914080 0.103645833 0.154181957 0.155421019
+ RMC 1316896083.032999992 185 0.053913116 0.096354167 0.154093027 0.155033112
+ RMC 1316896084.032999992 356 0.053911924 0.185416667 0.254106045 0.255131960
+ RMC 1316896085.032999992 199 0.043911934 0.103645833 0.154096127 0.155052900
+ RMC 1316896086.032999992 199 0.043921947 0.103645833 0.154097080 0.155107021
+ RMC 1316896087.032999992 199 0.043915033 0.103645833 0.154099941 0.155046940
+ RMC 1316896088.032999992 182 0.043987036 0.094791667 0.154097080 0.155098915
+ RMC 1316896089.032000065 357 0.054910898 0.185937500 0.255097866 0.255987883
+ RMC 1316896090.032000065 199 0.044914961 0.103645833 0.155102015 0.156100035