Parsing and search data in logstash and elasticsearch

How do you know that query A is 2 milliseconds and query B is 1 millisecond and not the other way around?