diff options
author | 2017-07-28 13:06:56 +0200 | |
---|---|---|
committer | 2017-07-31 18:13:02 +0000 | |
commit | 196ed0599148d6c8ed0e2ca82ad03e129e26428a (patch) | |
tree | 0bf5e622c46eb78e2732d877a54c6a79c21ecd3d /docs/report/dpdk_performance_tests/packet_throughput_graphs | |
parent | 63026fb66d761b13c4b44f4935ee30010f8856de (diff) |
CSIT-618 Add LaTeX support to release report
- Add option to generate PDF from release report.
- Conditional content
- Static plot conversion
Change-Id: I7c4f0b41898791d1cab446d0fc3b07220380e1b8
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'docs/report/dpdk_performance_tests/packet_throughput_graphs')
-rw-r--r-- | docs/report/dpdk_performance_tests/packet_throughput_graphs/ip4.rst | 88 | ||||
-rw-r--r-- | docs/report/dpdk_performance_tests/packet_throughput_graphs/l2.rst | 88 |
2 files changed, 160 insertions, 16 deletions
diff --git a/docs/report/dpdk_performance_tests/packet_throughput_graphs/ip4.rst b/docs/report/dpdk_performance_tests/packet_throughput_graphs/ip4.rst index 7a0bc04328..11a54cca85 100644 --- a/docs/report/dpdk_performance_tests/packet_throughput_graphs/ip4.rst +++ b/docs/report/dpdk_performance_tests/packet_throughput_graphs/ip4.rst @@ -17,14 +17,32 @@ in the graph below. <iframe width="700" height="1000" frameborder="0" scrolling="no" src="../../_static/dpdk/64B-1t1c-ipv4-ndrdisc.html"></iframe> +.. raw:: latex + + \begin{figure}[H] + \centering + \graphicspath{{../_build/_static/dpdk/}} + \includegraphics[clip, trim=0cm 8cm 5cm 0cm, width=0.70\textwidth]{64B-1t1c-ipv4-ndrdisc} + \label{fig:64B-1t1c-ipv4-ndrdisc-dpdk} + \end{figure} + *Figure 1. L3FWD 1thread 1core - NDR Throughput for Phy-to-Phy IPv4 Routed-Forwarding Looping.* CSIT source code for the test cases used for above plots can be found in CSIT git repository: -.. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-1t1c-ethip4-ip4base-l3fwd-ndrdisc' * - :shell: +.. only:: html + + .. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-1t1c-ethip4-ip4base-l3fwd-ndrdisc' * + :shell: + +.. only:: latex + + .. code-block:: bash + + $ cd tests/dpdk/perf + $ grep -P '64B-1t1c-ethip4-ip4base-l3fwd-ndrdisc' * Testpmd NDR 64B packet throughput in 2t2c setup (2thread, 2core) is presented in the graph below. @@ -33,14 +51,32 @@ in the graph below. <iframe width="700" height="1000" frameborder="0" scrolling="no" src="../../_static/dpdk/64B-2t2c-ipv4-ndrdisc.html"></iframe> +.. raw:: latex + + \begin{figure}[H] + \centering + \graphicspath{{../_build/_static/dpdk/}} + \includegraphics[clip, trim=0cm 8cm 5cm 0cm, width=0.70\textwidth]{64B-2t2c-ipv4-ndrdisc} + \label{fig:64B-2t2c-ipv4-ndrdisc-dpdk} + \end{figure} + *Figure 2. L3FWD 2threads 2cores - NDR Throughput for Phy-to-Phy IPv4 Routed-Forwarding Looping.* CSIT source code for the test cases used for above plots can be found in CSIT git repository: -.. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-2t2c-ethip4-ip4base-l3fwd-ndrdisc' * - :shell: +.. only:: html + + .. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-2t2c-ethip4-ip4base-l3fwd-ndrdisc' * + :shell: + +.. only:: latex + + .. code-block:: bash + + $ cd tests/dpdk/perf + $ grep -P '64B-2t2c-ethip4-ip4base-l3fwd-ndrdisc' * PDR Throughput ~~~~~~~~~~~~~~ @@ -52,14 +88,32 @@ in the graph below. PDR measured for 0.5% packet loss ratio. <iframe width="700" height="1000" frameborder="0" scrolling="no" src="../../_static/dpdk/64B-1t1c-ipv4-pdrdisc.html"></iframe> +.. raw:: latex + + \begin{figure}[H] + \centering + \graphicspath{{../_build/_static/dpdk/}} + \includegraphics[clip, trim=0cm 8cm 5cm 0cm, width=0.70\textwidth]{64B-1t1c-ipv4-pdrdisc} + \label{fig:64B-1t1c-ipv4-pdrdisc-dpdk} + \end{figure} + *Figure 3. L3FWD 1thread 1core - PDR Throughput for Phy-to-Phy IPv4 Routed-Forwarding Looping.* CSIT source code for the test cases used for above plots can be found in CSIT git repository: -.. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-1t1c-ethip4-ip4base-l3fwd-pdrdisc' * - :shell: +.. only:: html + + .. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-1t1c-ethip4-ip4base-l3fwd-pdrdisc' * + :shell: + +.. only:: latex + + .. code-block:: bash + + $ cd tests/dpdk/perf + $ grep -P '64B-1t1c-ethip4-ip4base-l3fwd-pdrdisc' * L3FWD PDR 64B packet throughput in 2t2c setup (2thread, 2core) is presented in the graph below. PDR measured for 0.5% packet loss ratio. @@ -68,11 +122,29 @@ in the graph below. PDR measured for 0.5% packet loss ratio. <iframe width="700" height="1000" frameborder="0" scrolling="no" src="../../_static/dpdk/64B-2t2c-ipv4-pdrdisc.html"></iframe> +.. raw:: latex + + \begin{figure}[H] + \centering + \graphicspath{{../_build/_static/dpdk/}} + \includegraphics[clip, trim=0cm 8cm 5cm 0cm, width=0.70\textwidth]{64B-2t2c-ipv4-pdrdisc} + \label{fig:64B-2t2c-ipv4-pdrdisc-dpdk} + \end{figure} + *Figure 4. L3FWD 2thread 2core - PDR Throughput for Phy-to-Phy IPv4 Routed-Forwarding Looping.* CSIT source code for the test cases used for above plots can be found in CSIT git repository: -.. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-2t2c-ethip4-ip4base-l3fwd-pdrdisc' * - :shell: +.. only:: html + + .. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-2t2c-ethip4-ip4base-l3fwd-pdrdisc' * + :shell: + +.. only:: latex + + .. code-block:: bash + + $ cd tests/dpdk/perf + $ grep -P '64B-2t2c-ethip4-ip4base-l3fwd-pdrdisc' * diff --git a/docs/report/dpdk_performance_tests/packet_throughput_graphs/l2.rst b/docs/report/dpdk_performance_tests/packet_throughput_graphs/l2.rst index eb3be14af1..b63a12f3ad 100644 --- a/docs/report/dpdk_performance_tests/packet_throughput_graphs/l2.rst +++ b/docs/report/dpdk_performance_tests/packet_throughput_graphs/l2.rst @@ -17,14 +17,32 @@ in the graph below. <iframe width="700" height="1000" frameborder="0" scrolling="no" src="../../_static/dpdk/64B-1t1c-l2-ndrdisc.html"></iframe> +.. raw:: latex + + \begin{figure}[H] + \centering + \graphicspath{{../_build/_static/dpdk/}} + \includegraphics[clip, trim=0cm 8cm 5cm 0cm, width=0.70\textwidth]{64B-1t1c-l2-ndrdisc} + \label{fig:64B-1t1c-l2-ndrdisc-dpdk} + \end{figure} + *Figure 1. Testpmd 1thread 1core - NDR Throughput for Phy-to-Phy L2 Ethernet Looping.* CSIT source code for the test cases used for above plots can be found in CSIT git repository: -.. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-1t1c-eth-l2xcbase-testpmd-ndrdisc' * - :shell: +.. only:: html + + .. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-1t1c-eth-l2xcbase-testpmd-ndrdisc' * + :shell: + +.. only:: latex + + .. code-block:: bash + + $ cd tests/dpdk/perf + $ grep -P '64B-1t1c-eth-l2xcbase-testpmd-ndrdisc' * Testpmd NDR 64B packet throughput in 2t2c setup (2thread, 2core) is presented in the graph below. @@ -33,14 +51,32 @@ in the graph below. <iframe width="700" height="1000" frameborder="0" scrolling="no" src="../../_static/dpdk/64B-2t2c-l2-ndrdisc.html"></iframe> +.. raw:: latex + + \begin{figure}[H] + \centering + \graphicspath{{../_build/_static/dpdk/}} + \includegraphics[clip, trim=0cm 8cm 5cm 0cm, width=0.70\textwidth]{64B-2t2c-l2-ndrdisc} + \label{fig:64B-2t2c-l2-ndrdisc-dpdk} + \end{figure} + *Figure 2. Testpmd 2threads 2cores - NDR Throughput for Phy-to-Phy L2 Ethernet Looping.* CSIT source code for the test cases used for above plots can be found in CSIT git repository: -.. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-2t2c-eth-l2xcbase-testpmd-ndrdisc' * - :shell: +.. only:: html + + .. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-2t2c-eth-l2xcbase-testpmd-ndrdisc' * + :shell: + +.. only:: latex + + .. code-block:: bash + + $ cd tests/dpdk/perf + $ grep -P '64B-2t2c-eth-l2xcbase-testpmd-ndrdisc' * PDR Throughput ~~~~~~~~~~~~~~ @@ -52,14 +88,32 @@ in the graph below. PDR measured for 0.5% packet loss ratio. <iframe width="700" height="1000" frameborder="0" scrolling="no" src="../../_static/dpdk/64B-1t1c-l2-pdrdisc.html"></iframe> +.. raw:: latex + + \begin{figure}[H] + \centering + \graphicspath{{../_build/_static/dpdk/}} + \includegraphics[clip, trim=0cm 8cm 5cm 0cm, width=0.70\textwidth]{64B-1t1c-l2-pdrdisc} + \label{fig:64B-1t1c-l2-pdrdisc-dpdk} + \end{figure} + *Figure 3. Testpmd 1thread 1core - PDR Throughput for Phy-to-Phy L2 Ethernet Looping.* CSIT source code for the test cases used for above plots can be found in CSIT git repository: -.. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-1t1c-eth-l2xcbase-testpmd-pdrdisc' * - :shell: +.. only:: html + + .. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-1t1c-eth-l2xcbase-testpmd-pdrdisc' * + :shell: + +.. only:: latex + + .. code-block:: bash + + $ cd tests/dpdk/perf + $ grep -P '64B-1t1c-eth-l2xcbase-testpmd-pdrdisc' * Testpmd PDR 64B packet throughput in 2t2c setup (2thread, 2core) is presented in the graph below. PDR measured for 0.5% packet loss ratio. @@ -68,11 +122,29 @@ in the graph below. PDR measured for 0.5% packet loss ratio. <iframe width="700" height="1000" frameborder="0" scrolling="no" src="../../_static/dpdk/64B-2t2c-l2-pdrdisc.html"></iframe> +.. raw:: latex + + \begin{figure}[H] + \centering + \graphicspath{{../_build/_static/dpdk/}} + \includegraphics[clip, trim=0cm 8cm 5cm 0cm, width=0.70\textwidth]{64B-2t2c-l2-pdrdisc} + \label{fig:64B-2t2c-l2-pdrdisc-dpdk} + \end{figure} + *Figure 4. Testpmd 2thread 2core - PDR Throughput for Phy-to-Phy L2 Ethernet Looping.* CSIT source code for the test cases used for above plots can be found in CSIT git repository: -.. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-2t2c-eth-l2xcbase-testpmd-pdrdisc' * - :shell: +.. only:: html + + .. program-output:: cd ../../ && set -x && cd tests/dpdk/perf && grep -P '64B-2t2c-eth-l2xcbase-testpmd-pdrdisc' * + :shell: + +.. only:: latex + + .. code-block:: bash + + $ cd tests/dpdk/perf + $ grep -P '64B-2t2c-eth-l2xcbase-testpmd-pdrdisc' * |