The test cases are
while (sscanf(in,"%s<%*s>%s",tmp,in))
and
array_sscanf(data,"%{%s<%*s>%}%{%s%}")
so its not testing very many formats. The benchmark code is the one run by pike -x benchmark, so you can have a look there.
arne
On Fri, 16 May 2014, Stephen R. van den Berg wrote:
Arne Goedeke wrote:
The changes in sscanf make it slightly slower. Depending on the benchmark the old inlined code is about 3% faster. However, I only looked at the tag removal benchmarks.
What are the typical sscanf operations in those benchmarks? (Or where is the benchmark code?). -- Stephen.