Every search evaluates every hotel in the destination: allotment, night-by-night restrictions, rates, supplements and offers. With each response the node returns how many hotels it evaluated and how long the computation took on the server (meta.computeNanos, no network or HTTP). Here you run a series of searches with random dates against destinations of different sizes and compare.
| Destination | Hotels evaluated | Available | Compute (median) | p90 | Minimum | Per hotel | Back to back (median) | Round trip (median) | |
|---|---|---|---|---|---|---|---|---|---|
| Press “Measure”. | |||||||||
How to read it. “Compute” is the time measured inside the node around the search: evaluating the hotels and picking the cheapest option at each one. “Round trip” is measured by your browser and includes the network to the server and the website's proxy, so almost all of it is distance, not engine. The first two searches of each destination are discarded as warm-up. “Back to back” is the same search run again at once on the server (the node runs each search five times and reports the first one as “Compute” and the median of the other four): a lone search, seconds after the previous one, finds the CPU caches full of other work and has to bring the hotels' data back from memory, while a search right after another finds them hot. Benchmarks that run searches in a loop measure the second figure; a quiet site serves the first. The node behind this demo is a container limited to 1 core of a small shared virtual machine, with 2 threads and a bounded queue: if many people measure at once you will see 503 or 429 responses and worse times. To measure for real, clone the repository and run the benchmarks on your own machine.