Scroom  0.14
measure-load-performance-tests.hh File Reference
Include dependency graph for measure-load-performance-tests.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void init_tests ()
 

Function Documentation

◆ init_tests()

void init_tests ( )
153 {
154  const int width = 2 * 4096;
155  const int height = 2 * 4096;
156  const unsigned int testDuration = 15;
157  const unsigned int sleepDuration = 2;
158 
159  functions.emplace_back(Sleeper(sleepDuration));
160  functions.emplace_back(logSizes);
161  functions.emplace_back(BaseCounter("Baseline (no invalidate)", testDuration));
162 
163  functions.emplace_back(Invalidator(sleepDuration));
164  functions.emplace_back(InvalidatingCounter("Baseline (no redraw)", testDuration));
165 
166  functions.emplace_back(boost::bind(setupTest1bpp, -2, width, height));
167  functions.emplace_back(wait);
168  functions.emplace_back(Invalidator(sleepDuration));
169  functions.emplace_back(InvalidatingCounter("1bpp, 1:4 zoom", testDuration));
170 
171  functions.emplace_back(boost::bind(setupTest1bpp, 4, width, height));
172  functions.emplace_back(wait);
173  functions.emplace_back(Invalidator(sleepDuration));
174  functions.emplace_back(InvalidatingCounter("1bpp, 16:1 zoom", testDuration));
175 
176  functions.emplace_back(boost::bind(setupTest4bpp, -2, width, height));
177  functions.emplace_back(wait);
178  functions.emplace_back(Invalidator(sleepDuration));
179  functions.emplace_back(InvalidatingCounter("4bpp, 1:4 zoom, colormapped", testDuration));
180 
181  functions.emplace_back(boost::bind(setupTest4bpp, 4, width, height));
182  functions.emplace_back(wait);
183  functions.emplace_back(Invalidator(sleepDuration));
184  functions.emplace_back(InvalidatingCounter("4bpp, 16:1 zoom, colormapped", testDuration));
185 
186  functions.emplace_back(boost::bind(setupTest8bpp, -2, width, height));
187  functions.emplace_back(wait);
188  functions.emplace_back(Invalidator(sleepDuration));
189  functions.emplace_back(InvalidatingCounter("8bpp, 1:4 zoom", testDuration));
190 
191  functions.emplace_back(boost::bind(setupTest8bpp, 4, width, height));
192  functions.emplace_back(wait);
193  functions.emplace_back(Invalidator(sleepDuration));
194  functions.emplace_back(InvalidatingCounter("8bpp, 16:1 zoom", testDuration));
195 
196  functions.emplace_back(boost::bind(setupTest8bppColormapped, -2, width, height));
197  functions.emplace_back(wait);
198  functions.emplace_back(Invalidator(sleepDuration));
199  functions.emplace_back(InvalidatingCounter("8bpp, 1:4 zoom, colormapped", testDuration));
200 
201  functions.emplace_back(boost::bind(setupTest8bppColormapped, 4, width, height));
202  functions.emplace_back(wait);
203  functions.emplace_back(Invalidator(sleepDuration));
204  functions.emplace_back(InvalidatingCounter("8bpp, 16:1 zoom, colormapped", testDuration));
205 
206  functions.emplace_back(reset);
207  functions.emplace_back(quit);
208 }

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:
setupTest8bpp
bool setupTest8bpp(int zoom, int width, int height)
Definition: test-helpers.cc:200
setupTest4bpp
bool setupTest4bpp(int zoom, int width, int height)
Definition: test-helpers.cc:182
InvalidatingCounter
Definition: measure-framerate-tests.cc:55
Invalidator
Definition: measure-framerate-tests.cc:25
Sleeper
Definition: test-helpers.hh:85
functions
std::vector< boost::function< bool()> > functions
Definition: measure-framerate-callbacks.cc:16
wait
bool wait()
Definition: test-helpers.cc:134
reset
bool reset()
Definition: test-helpers.cc:127
quit
bool quit()
Definition: test-helpers.cc:120
BaseCounter
Definition: measure-framerate-tests.cc:38
setupTest1bpp
bool setupTest1bpp(int zoom, int width, int height)
Definition: test-helpers.cc:146
logSizes
static bool logSizes()
Definition: measure-framerate-tests.cc:64
setupTest8bppColormapped
bool setupTest8bppColormapped(int zoom, int width, int height)
Definition: test-helpers.cc:217