webgl_aquarium¶
Source code: webgl_aquarium.py
WebGL performance test that executes a set of WebGL operations.
Description¶
The test runs the WebGL aquarium test for testing the 3D hardware-accelerated JavaScript API ‘WebGL’, and get FPS value from frontend for checking.
Test Procedure¶
This is an automatic test that doesn’t need any user interaction. Just set the argument before start, and wait for the completion. It runs the WebGL aquarium test, and fail if the moving average FPS value less than ‘min_fps’ while testing.
Dependency¶
None.
Examples¶
To disable the performance restriction, add this in test list:
{
"pytest_name": "webgl_aquarium",
"args": {
"min_fps": 0
}
}
To sample and check FPS more frequently with higher standard for FPS, add this in test list:
{
"pytest_name": "webgl_aquarium",
"args": {
"min_fps": 30,
"fps_sample_interval": 0.5,
"fps_check_interval": 3
}
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
duration_secs |
int |
(optional; default: |
num_fish |
int |
(optional; default: |
hide_options |
bool |
(optional; default: |
full_screen |
bool |
(optional; default: |
min_fps |
int |
(optional; default: |
fps_sample_interval |
float |
(optional; default: |
fps_log_interval |
int |
(optional; default: |
fps_check_interval |
int |
(optional; default: |
fps_window_size |
int |
(optional; default: |