| commit | b80527734ad996fdf369af9fc3b171fe997f3858 | [log] [tgz] |
|---|---|---|
| author | Po-Hsien Wang <[email protected]> | Thu Jan 06 02:04:10 2022 |
| committer | Commit Bot <[email protected]> | Thu Jan 13 23:21:52 2022 |
| tree | 8b161c6f7b90a49e76c005b5e32f25a84345576c | |
| parent | 7b11d2e63e1c19b68e9e45dbe4285258dc1fbd3d [diff] |
Output timestamp before result entry This CL output timestamp before each @RESULT entries. It also output the time in microseconds. BEFORE: # DateTime: Tue Jan 4 23:40:59 2022 AFTER: # DateTime: Wed Jan 5 18:03:30.588427 2022 BUG=b:201939097 TEST=make & check the output Change-Id: I4dddd681d6ba36a2fcdf193fa8083bae78fec6e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/glbench/+/3368615 Reviewed-by: Ilja Friedel <[email protected]> Tested-by: Ilja Friedel <[email protected]> Tested-by: Po-Hsien Wang <[email protected]> Auto-Submit: Po-Hsien Wang <[email protected]> Commit-Queue: Ilja Friedel <[email protected]>
GLBench runs OpenGL or OpenGL ES microbenchmarks and writes performance numbers to stdout and resulting images to a directory for verification.
For the test to pass the performance numbers have to be better than a predefined threshold, while the resulting images have to be found in a repository of reference images. As the image name encodes the raw pixel MD5 this can be done as a simple file existence check. If we ever get too much pixel variation using a tool like perceptualdiff to waive small differences should be acceptable.
It might be easier to develop new tests under Linux:
sudo apt-get install libgflags-dev sudo apt-get install libwaffle-dev sudo apt-get install waffle-utils (optional) make
./glbench -notemp [-save [-outdir=<directory>]]
./glbench -save -outdir=img # board_id: NVIDIA Corporation - Quadro FX 380/PCI/SSE2 swap_swap = 214.77 us [swap_swap.pixmd5-20dbc406b95e214a799a6a7f9c700d2f.png] clear_color = 4448.28 mpixels_sec [clear_color.pixmd5-e3609de1022a164fe240a562c69367de.png] clear_depth = 10199.76 mpixels_sec [clear_depth.pixmd5-e3609de1022a164fe240a562c69367de.png] clear_colordepth = 3250.57 mpixels_sec [clear_colordepth.pixmd5-e3609de1022a164fe240a562c69367de.png] clear_depthstencil = 26447.22 mpixels_sec [clear_depthstencil.pixmd5-e3609de1022a164fe240a562c69367de.png] [...] ls img clear_color.pixmd5-e3609de122a164fe240a562c69367de.png clear_colordepth.pixmd5-e3609de122a164fe240a562c69367de.png clear_colordepthstencil.pixmd5-e3609de122a164fe240a562c69367de.png compositing.pixmd5-7d02a16a7ac15cd6cbbc5c786f1.png [...]
Running the autotest test_that $DUT graphics_GLBench will \
Good reference images themselves are located at ./ref_images/glbench_reference_images/
Images that have outstanding defects and an open bug filed are at ./ref_images/glbench_knownbad_images/chromium-bug-NNNNN/
When that bug is closed the directory should be moved to ./ref_images/glbench_fixedbad_images/chromium-bug-NNNNN/ \
To push out new reference images place them in the appropriate directories (create a new bug if needed) and run ./update_glbench_image_filelists.sh to update the image filelists.