MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / speedtest1_begin_test

Function speedtest1_begin_test

test/sqlite/speedtest1.c:258–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256static const char zDots[] =
257 ".......................................................................";
258void speedtest1_begin_test(int iTestNum, const char *zTestName, ...){
259 int n = (int)strlen(zTestName);
260 char *zName;
261 va_list ap;
262 va_start(ap, zTestName);
263 zName = sqlite3_vmprintf(zTestName, ap);
264 va_end(ap);
265 n = (int)strlen(zName);
266 if( n>NAMEWIDTH ){
267 zName[NAMEWIDTH] = 0;
268 n = NAMEWIDTH;
269 }
270 if( g.bSqlOnly ){
271 printf("/* %4d - %s%.*s */\n", iTestNum, zName, NAMEWIDTH-n, zDots);
272 }else{
273 printf("%4d - %s%.*s ", iTestNum, zName, NAMEWIDTH-n, zDots);
274 fflush(stdout);
275 }
276 sqlite3_free(zName);
277 g.nResult = 0;
278 g.iStart = speedtest1_timestamp();
279 g.x = 0xad131d0b;
280 g.y = 0x44f9eac8;
281}
282
283/* Complete a test case */
284void speedtest1_end_test(void){

Callers 3

testset_mainFunction · 0.85
testset_cteFunction · 0.85
testset_rtreeFunction · 0.85

Calls 4

strlenFunction · 0.85
printfFunction · 0.85
fflushFunction · 0.85
speedtest1_timestampFunction · 0.85

Tested by

no test coverage detected