in reply to Re^2: Challenge: Construct an unpack string
in thread Challenge: Construct an unpack string
If you hardcode the template to unpack, of course it will be quicker--but when the input data changes, the template won't without programmer intervention--which kinda negates the value of the benchmark.
Actually, your entire benchmark is pretty suspect and you are comparing a bunch of entirely different things:
So, no. I wouldn't agree that this is a valid benchmark :) Sorry.
Also, please use cmpthese for benchmarking, the output from timethese is all but unintelligable.
|
|---|