[Interest] qmlbench tool: high cpu usage while running tool and generate report

Gullapalli, Satyanarayan satyanarayan.gullapalli at thermofisher.com
Thu Feb 9 13:53:49 CET 2023


Hi Team,



We are using the following test setup for our project:

  *   evaluation board which has
     *   iMX-8m-mini-som
     *   display(MIPI) of resolution 1280x720
     *   Integrated 2D/3D GPU and 1080p VPU
  *   running qt default applications with backend as eglfs.



With reference to link https://www.qt.io/blog/2017/04/27/performance-regression-testing-qt-quick, we have used the qmlbench tool from https://github.com/qt-labs/qmlbench/tree/master.



High CPU usage while running the qmlbench:

While testing with qmlbench tool we have noted that the usage reaching high(~100%).

Test command:

$ src/qmlbench -v --json --shell frame-count benchmarks/auto/bindings/



Find below few top command logs while running qmlbench tool:

    640 root      20   0  596216  30912  24412 S   6.0   1.5   0:00.18 qmlbench

    639 root      20   0   53856  13548  12032 S   1.3   0.7   0:00.04 qmlbench

    640 root      20   0  607208  47292  26736 R  89.1   2.3   0:02.87 qmlbench

    639 root      20   0   53856  13548  12032 S   0.0   0.7   0:00.04 qmlbench

    640 root      20   0  607220  46816  26728 R 100.0   2.3   0:05.89 qmlbench

    639 root      20   0   53856  13548  12032 S   0.0   0.7   0:00.04 qmlbench

    640 root      20   0  607344  46648  26728 R 100.3   2.3   0:08.91 qmlbench

    639 root      20   0   53856  13548  12032 S   0.0   0.7   0:00.04 qmlbench

    640 root      20   0  607336  46560  26728 R 100.3   2.3   0:11.94 qmlbench

    639 root      20   0   53856  13548  12032 S   0.0   0.7   0:00.04 qmlbench

    640 root      20   0  607348  46948  26760 R 100.3   2.3   0:14.96 qmlbench

    639 root      20   0   53856  13548  12032 S   0.0   0.7   0:00.04 qmlbench

    640 root      20   0  607372  47420  26728 R 100.0   2.3   0:17.98 qmlbench

    639 root      20   0   53856  13548  12032 S   0.0   0.7   0:00.04 qmlbench

    640 root      20   0  607348  46960  26760 R 100.3   2.3   0:21.00 qmlbench

    639 root      20   0   53856  13548  12032 S   0.0   0.7   0:00.04 qmlbench



PFA, for detailed test logs.



Is this expected behavior?, as stated "the maximum usage a single-threaded process can take up to 25% of total CPU time" in the document https://web.wpi.edu/Pubs/E-project/Available/E-project-042518-124639/unrestricted/Developing_a_Benchmark_for_Qt_on_Embedded_Platforms.pdf at page#29.

 If not expected behavior, then is there any to control the cpu usage.



Generating reports:

As displayed in the link https://www.qt.io/blog/2017/04/27/performance-regression-testing-qt-quick, how can we generate reports using qmlbench tool for benchmark comparison.

How can we include/create reports of the performance metrics like Frame Rate, CPU Usage, and Physical Memory Usage while using qmlbench tool


Regards,
Satyanarayan Gullapalli

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230209/e08f310c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 230209-1532-qmlbench-target-logs.zip
Type: application/x-zip-compressed
Size: 984 bytes
Desc: 230209-1532-qmlbench-target-logs.zip
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230209/e08f310c/attachment.bin>


More information about the Interest mailing list