dnsdiag icon indicating copy to clipboard operation
dnsdiag copied to clipboard

dnseval: send one query before starting the comparison

Open webernetz opened this issue 7 years ago • 2 comments

Hi Babak,

I am currently testing a few DNS servers with dnseval. One suggestion: Since it tests basically the "cache hit" rate it makes a huge difference whether the requested hostname is already in the cache of the DNS resolver or not. If it is in the cache, all responses are fast. If it is not in the cache, the very first query is slow while all further queries are fast. Hence my idea: Could you send a first query to the resolver (in order to have the hostname in the cache), wait a few moments (let's say, 1 second) and then start the actual dnseval test of the servers? To my mind this would give better comparable results.

Ciao, Johannes

webernetz avatar Nov 23 '17 11:11 webernetz

Thanks for the suggestion. My initial idea is to add an optional warmup and exclude it from the measurement.

farrokhi avatar Nov 23 '17 11:11 farrokhi

Yeah, or a "no-warmup" option to have the warmup by default. ;)

webernetz avatar Nov 23 '17 11:11 webernetz