]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - recvmmsg/bench.sh
Use new novaboot feature EXITON
[can-benchmark.git] / recvmmsg / bench.sh
1 #!/bin/sh
2
3 echo "Running can_recvmmsg benchmark"
4
5 PATH=../_compiled/bin:$PATH
6
7 ip link add vcan0 type vcan
8 ip l set dev vcan0 up
9
10 # Elisp: (insert (concat "\nCOUNTS='" (shell-command-to-string "octave -f -q --eval \"split_long_rows(0); disp(round(logspace(log10(10), log10(50000), 300)))\" 2>/dev/null| tr -s ' '") "'"))
11 COUNTS='10 10 11 11 11 12 12 12 13 13 13 14 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 22 22 23 24 24 25 26 26 27 28 29 30 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 47 48 49 51 52 54 55 57 58 60 62 64 66 67 69 71 73 76 78 80 82 85 87 90 92 95 98 100 103 106 109 113 116 119 123 126 130 134 137 141 146 150 154 158 163 168 173 178 183 188 193 199 205 211 217 223 230 236 243 250 257 265 272 280 288 297 305 314 323 332 342 352 362 373 383 394 406 417 430 442 455 468 481 495 510 524 539 555 571 588 605 622 640 659 678 697 717 738 759 781 804 827 851 876 901 927 954 981 1010 1039 1069 1100 1131 1164 1198 1232 1268 1305 1342 1381 1421 1462 1504 1548 1592 1638 1686 1735 1785 1836 1889 1944 2000 2058 2117 2178 2241 2306 2373 2441 2512 2584 2659 2736 2815 2896 2980 3066 3155 3246 3340 3436 3536 3638 3743 3851 3962 4077 4195 4316 4440 4569 4701 4837 4976 5120 5268 5420 5577 5738 5904 6074 6250 6431 6616 6808 7004 7207 7415 7629 7850 8076 8310 8550 8797 9051 9313 9582 9859 10143 10437 10738 11048 11368 11696 12034 12382 12740 13108 13486 13876 14277 14690 15114 15551 16000 16462 16938 17428 17931 18449 18982 19531 20095 20676 21273 21888 22521 23171 23841 24530 25238 25968 26718 27490 28284 29102 29943 30808 31698 32614 33556 34526 35524 36550 37606 38693 39811 40961 42145 43363 44615 45905 47231 48596 50000'
12
13 for i in $COUNTS; do
14 #    for j in $(seq 10); do
15         tr=$(can_recvmmsg -q -c $i -r)
16         tm=$(can_recvmmsg -q -c $i -m)
17         echo $i $tr $tm
18 #    done
19 done