Jump to content

Measuring CUDA ISP API performance using GstShark and GstPerf

From RidgeRun Developer Wiki

Follow us on: YouTube Twitter LinkedIn Email Share this page

Share This Page


Previous: Performance/Library Index Next: Contact Us






GStreamer elements performance

Info
For old versions, the elements do not have the rr prefix in their names


To measure the performance, we have used two of our GStreamer tools: GstShark and GstPerf.

For testing purposes, take into account the following points:

  • Maximum performance mode enabled: all cores and Jetson clocks enabled.
  • Jetpack 6.2
  • A patch was applied to v4l2src to enable bayer10 captures. You can see how to apply the patch in this link: Apply patch to v4l2src

In summary:

Jetson Orin AGX (2472x2064) Jetson Orin Nano (4K) Jetson Orin Nano (HD)
Element rrcudashift rrcudadebayer rrcudaawb rrcudashift rrcudadebayer rrcudaawb rrcudashift rrcudadebayer rrcudaawb
Output bayer 8 RGB I420 RGB I420 bayer 8 RGB I420 RGB I420 bayer 8 RGB I420 RGB I420
FPS 1382 1063 861 1800 1022 548 326 236 807 296 1248 836 643 1863 841
Processing time (milliseconds) 0.72 0.94 1.16 0.56 0.98 1.83 3.06 4.24 1.24 3.38 0.80 1.20 1.56 0.54 1.20

Jetson Orin AGX

In this case, the patch for v4l2src was modified to enable captures in bayer 12. The processing time and FPS were measured with an input image with 2472x2064 resolution from a camera sensor for all the elements.

The following pipeline measured the processing time and FPS for the rrcudashift element.

GST_DEBUG="GST_TRACER:7" GST_TRACERS="proctime" gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=12, width=2472, height=2064, format=rggb' ! rrcudashift shift=5 ! fakesink

The following pipeline was used to test the rrcudadebayer and rrcudaawb elements with an RGB image as output.

GST_DEBUG="GST_TRACER:7" GST_TRACERS="proctime" gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=12, width=2472, height=2064, format=rggb' ! rrcudadebayer ! rrcudaawb ! 'video/x-raw, format=RGB' ! fakesink

The following pipeline was used to test the rrcudadebayer and rrcudaawb elements with an I420 image as output.

GST_DEBUG="GST_TRACER:7" GST_TRACERS="proctime" gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=12, width=2472, height=2064, format=rggb' ! rrcudadebayer ! rrcudaawb ! 'video/x-raw, format=I420' ! fakesink

The following image shows a plot with the processing time for all elements:

CUDA ISP library
CUDA ISP library

Jetson Orin Nano

The processing time and FPS were measured with an input image with 4K and HD resolution from a camera sensor for all the elements.

The following pipeline measured the processing time and FPS for the rrcudashift element.

GST_DEBUG="GST_TRACER:7" GST_TRACERS="proctime" gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=10, format=rggb' ! rrcudashift shift=0 ! fakesink

he following pipeline was used to testing the rrcudadebayer and rrcudaawb elements with an RGB image as output.

GST_DEBUG="GST_TRACER:7" GST_TRACERS="proctime" gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=10, width=$WIDTH, height=$HEIGHT' ! rrcudadebayer ! rrcudaawb ! fakesink

The following pipeline was used to test the rrcudadebayer and rrcudaawb elements with an I420 image as output.

GST_DEBUG="GST_TRACER:7" GST_TRACERS="proctime" gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=10, width=$WIDTH, height=$HEIGHT' ! rrcudadebayer ! rrcudaawb ! 'video/x-raw, format=I420' ! fakesink

The following image shows a plot with the processing time for all elements:

CUDA ISP library
CUDA ISP library

More cameras

This section shows the performance results for the elements running simultaneously on multiple cameras on a Jetson Xavier AGX. For all the tests done with an RGB output image, the following pipeline was used to measure the processing time and FPS for the rrcudaawb and the rrcudadebayer element with an input image with 1920x1200 resolution coming from multiple camera sensors.

GST_DEBUG="GST_TRACER:7" GST_TRACERS="proctime" gst-launch-1.0 -ve v4l2src device=/dev/video0 io-mode=userptr ! 'video/x-bayer, bpp=10, width=1920, height=1200, format=grbg' ! rrcudadebayer ! rrcudaawb ! 'video/x-raw, format=RGB' ! fakesink

In the same way, all the tests are done with an I420 output image. the following pipeline was used to measure the processing time and FPS for the rrcudaawb and the rrcudadebayer element with an input image with 1920x1200 resolution coming from multiple camera sensors

GST_DEBUG="GST_TRACER:7" GST_TRACERS="proctime" gst-launch-1.0 -ve v4l2src device=/dev/video1 io-mode=userptr ! 'video/x-bayer, bpp=10, width=1920, height=1200, format=grbg' ! rrcudadebayer ! rrcudaawb ! 'video/x-raw, format=I420' ! fakesink

The results obtained:

rrcudadebayer
Output RGB I420
Number of cameras Two Three Four Five Two Three Four Five
FPS 412 429 385 494 464 402 320 332
Processing time (milliseconds) 2.426 2.354 2.597 2.025 2.154 2.486 3.128 3.011
rrcudaawb
Output RGB I420
Number of cameras Two Three Four Five Two Three Four Five
FPS 397 374 689 347 429 450 289 296
Processing time (milliseconds) 2.521 2.672 1.450 2.883 2.330 2.20 3.459 3.375




Previous: Performance/Library Index Next: Contact Us



Cookies help us deliver our services. By using our services, you agree to our use of cookies.