← Commit list

f9c45e9b24

Daniel Stenberg
Daniel Stenberg
2026-09-01
SUCCESS Duration: 429s

Subject

perf: 0-pad the nanosecond decimals correctly

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/perf/base64.c+1 -1
@@ -70,7 +70,7 @@ static int test_base64(int argc, const char **argv)
hn = loop ? us * 100000 / loops : 0; /* 100 times too big */
curl_mprintf("Loops: %" CURL_FORMAT_CURL_OFF_T "\n"
"Time: %lld usecs\n"
- "Time/loop: %lld.%lld ns\n",
+ "Time/loop: %lld.%0lld ns\n",
loops,
(long long)us,
(long long)hn / 100,
tests/perf/snprintf.c+1 -1
@@ -58,7 +58,7 @@ static int test_snprintf(int argc, const char **argv)
hn = loops ? us * 100000 / loops : 0; /* 100 times too big */
curl_mprintf("Loops: %" CURL_FORMAT_CURL_OFF_T "\n"
"Time: %lld usecs\n"
- "Time/loop: %lld.%lld ns\n",
+ "Time/loop: %lld.%0lld ns\n",
loops,
(long long)us,
(long long)hn / 100,
tests/perf/urlparser.c+1 -1
@@ -1172,7 +1172,7 @@ static int test_urlparser(int argc, const char **argv)
hn = count ? us * 100000 / count : 0; /* 100 times too big */
curl_mprintf("URLs: %" CURL_FORMAT_CURL_OFF_T "\n"
"Time: %lld usecs\n"
- "Time/URL: %lld.%lld ns\n"
+ "Time/URL: %lld.%0lld ns\n"
"URLs/sec: %lld\n"
"Errors: %" CURL_FORMAT_CURL_OFF_T "\n",
count,