]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Add noncommited files that might be useful
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 7 Feb 2014 16:09:20 +0000 (17:09 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 7 Feb 2014 16:09:20 +0000 (17:09 +0100)
recvmmsg/ppc/data [new file with mode: 0644]
recvmmsg/ppc/plot2.gp [new file with mode: 0755]

diff --git a/recvmmsg/ppc/data b/recvmmsg/ppc/data
new file mode 100644 (file)
index 0000000..c8fffba
--- /dev/null
@@ -0,0 +1,50 @@
+10    tx 519 rx 107 [us] tx 381 rx 84 [us]\r
+12    tx 547 rx 107 [us] tx 411 rx 88 [us]\r
+13    tx 578 rx 113 [us] tx 436 rx 88 [us]\r
+15    tx 656 rx 129 [us] tx 496 rx 99 [us]\r
+18    tx 797 rx 163 [us] tx 598 rx 125 [us]\r
+20    tx 1047 rx 193 [us] tx 644 rx 131 [us]\r
+23    tx 1022 rx 218 [us] tx 724 rx 150 [us]\r
+27    tx 1142 rx 238 [us] tx 976 rx 184 [us]\r
+31    tx 1302 rx 269 [us] tx 946 rx 184 [us]\r
+36    tx 1521 rx 307 [us] tx 1081 rx 216 [us]\r
+41    tx 1779 rx 374 [us] tx 1221 rx 247 [us]\r
+47    tx 1946 rx 420 [us] tx 1374 rx 286 [us]\r
+54    tx 2258 rx 485 [us] tx 1595 rx 316 [us]\r
+63    tx 2642 rx 558 [us] tx 1822 rx 370 [us]\r
+72    tx 2979 rx 641 [us] tx 2225 rx 424 [us]\r
+83    tx 3467 rx 738 [us] tx 2386 rx 475 [us]\r
+95    tx 4048 rx 839 [us] tx 2722 rx 543 [us]\r
+110   tx 4646 rx 977 [us] tx 3256 rx 624 [us]\r
+126   tx 5501 rx 1121 [us] tx 3971 rx 708 [us]\r
+146   tx 6255 rx 1287 [us] tx 4338 rx 925 [us]\r
+168   tx 7396 rx 1471 [us] tx 5184 rx 911 [us]\r
+193   tx 8302 rx 1668 [us] tx 5876 rx 1029 [us]\r
+222   tx 9461 rx 1906 [us] tx 6621 rx 1167 [us]\r
+256   tx 11033 rx 2194 [us] tx 7817 rx 1423 [us]\r
+295   tx 12644 rx 2520 [us] tx 9029 rx 1665 [us]\r
+339   tx 14771 rx 2998 [us] tx 10406 rx 1751 [us]\r
+391   tx 16771 rx 3319 [us] tx 12058 rx 2122 [us]\r
+450   tx 19228 rx 3941 [us] tx 13855 rx 2413 [us]\r
+518   tx 22163 rx 4538 [us] tx 16140 rx 2761 [us]\r
+596   tx 25599 rx 5035 [us] tx 18317 rx 3231 [us]\r
+687   tx 29574 rx 5930 [us] tx 21048 rx 3785 [us]\r
+791   tx 34541 rx 6724 [us] tx 24280 rx 4233 [us]\r
+910   tx 39125 rx 7711 [us] tx 28079 rx 4844 [us]\r
+1048  tx 45043 rx 8990 [us] tx 32921 rx 5645 [us]\r
+1207  tx 52140 rx 10323 [us] tx 37338 rx 6556 [us]\r
+1389  tx 59892 rx 11899 [us] tx 42862 rx 7573 [us]\r
+1600  tx 69609 rx 13634 [us] tx 49423 rx 8760 [us]\r
+1842  tx 79514 rx 15805 [us] tx 57389 rx 10101 [us]\r
+2121  tx 93002 rx 18147 [us] tx 65763 rx 11615 [us]\r
+2442  tx 105429 rx 20934 [us] tx 75730 rx 13357 [us]\r
+2812  tx 121971 rx 24061 [us] tx 87175 rx 15383 [us]\r
+3237  tx 139970 rx 27755 [us] tx 101014 rx 17811 [us]\r
+3728  tx 160690 rx 31823 [us] tx 115139 rx 20501 [us]\r
+4292  tx 191487 rx 37112 [us] tx 132912 rx 23683 [us]\r
+4942  tx 217294 rx 42478 [us] tx 153170 rx 27331 [us]\r
+5690  tx 246074 rx 48659 [us] tx 176031 rx 31549 [us]\r
+6551  tx 291292 rx 56452 [us] tx 202803 rx 36214 [us]\r
+7543  tx 340274 rx 64888 [us] tx 233889 rx 41830 [us]\r
+8685  tx 374952 rx 74310 [us] tx 270165 rx 48270 [us]\r
+10000 tx 433031 rx 85443 [us] tx 311835 rx 55466 [us]\r
diff --git a/recvmmsg/ppc/plot2.gp b/recvmmsg/ppc/plot2.gp
new file mode 100755 (executable)
index 0000000..ef8d342
--- /dev/null
@@ -0,0 +1,49 @@
+#!/usr/bin/env gnuplot
+# termsize 7cm,7cm
+set grid
+
+set xlabel "Frames [×1000]"
+set ylabel "RX Time [ms]"
+set key left reverse Left
+
+fit ard*x+brd "data" using 1:5  via ard, brd
+fit arm*x+brm "data" using 1:10 via arm, brm
+
+fit awr*x+bwr "data" using 1:3 via awr, bwr
+fit asm*x+bsm "data" using 1:8 via asm, bsm
+
+set yrange [0:]
+set y2range [0:]
+
+set multiplot layout 1,2
+set ylabel "RX Time [µs]"
+plot 'data' using ($1/1000):($5/$1)  with lp lc 1 title 'read()', \
+     'data' using ($1/1000):($10/$1) with lp lc 1 title 'recvmmsg()', \
+     ard with lines lt 1 lc rgbcolor "#aa0000" lw 1 title "", \
+     arm with lines lt 2 lc rgbcolor "#aa0000" lw 1 title ""
+
+set ylabel "TX Time [µs]"
+plot 'data' using ($1/1000):($3/$1)  with lp lc 2 title 'write()', \
+     'data' using ($1/1000):($8/$1)  with lp lc 2 title 'sendmmsg()', \
+     awr with lines lt 1 lc rgbcolor "#00aa00" lw 1 title "", \
+     asm with lines lt 2 lc rgbcolor "#00aa00" lw 1 title ""
+
+unset multiplot
+
+# ard*x+brd - arm*x-brm = 0
+# (ard-arm)*x = brm-brd
+xeq = (brm-brd)/(ard-arm)
+print "ard = ", ard
+print "arm = ", arm
+print "arm/ard = ", arm/ard
+print "Intersection at x = ", xeq
+print ""
+
+xeq = (bsm-bwr)/(awr-asm)
+print "awr = ", awr
+print "asm = ", asm
+print "asm/awr = ", asm/awr
+print "Intersection at x = ", xeq
+print ""
+print "recvmmsg speedup [%]: ", 100-(arm/ard*100)
+print "sendmmsg speedup [%]: ", 100-(asm/awr*100)