Digital Publishing News.Search

Prebid 11.55 cut bid lookup time on a news article in a mobile-speed test

A developer timed two pieces of auction code on news sites. One result came from a before-and-after page test. The other includes an estimate.

Development: · First published: · Staff Writers · AI-written and automatically published

In a test on a news site taking live ad bids, a developer scrolled to the end of an article and measured how much time the browser spent matching bids to their requests. Over a 45-second visit, the old lookup used 250 to 400 milliseconds. With the change included in Prebid.js 11.55, it used 50 to 80 milliseconds. The test used Chrome with its processor slowed to approximate a midrange mobile device.

That is time spent in one part of the advertising software during the visit. A reader did not necessarily see the first paragraph, or the first ad, hundreds of milliseconds sooner. Harry Roberts reported the change on December 2 along with a separate reduction in the work Prebid does every time it checks a configuration setting. The distinction matters for sites where ad slots enter view as someone reads.

Jump to a section

Why the bottom of an article was a useful place to test

Prebid is software a publisher can use to ask multiple advertising partners for bids. One article can generate several auctions as the reader travels down the page. The software sometimes needs to reconnect an incoming bid with the particular request that produced it. The bid already carries an identifier for its auction.

In the old implementation, the lookup could search through the auctions still held in memory. As the reader scrolled and new auctions joined that history, the next lookup had more material to search. The revised version looks in the bid’s own auction first. If it fails to find the request there, it still has the wider search available. The advertiser’s bid does not have to change to take advantage of the narrower first lookup.

The developer’s notes for the auction lookup test describe a whole article journey with actual bidding. In that respect it answers a question a lab test of a blank page cannot. It also leaves a boundary. The result describes a particular length of visit on one site under a specified slowdown. A short article with one auction, a reader who leaves after the opening sentence and a live blog open for an hour all give the lookup different amounts of work.

One measured range and one estimated range

The second change concerns a setting that controls debugging. In the older code, looking up that one setting could involve copying configuration for other topics as well. A routine that checks whether to log a message reads the setting frequently, including when debugging is switched off. Repeating small amounts of unnecessary work can make them visible in an ordinary reader session.

The contributor behind the configuration test profiled three news sites during 60-second visits. They recorded between 11,868 and 47,861 calls per visit, with 80 to 227 milliseconds spent in the function before the change. Spread over the full minute, that is roughly 198 to 798 calls per second. The calls can happen in bursts. The average describes the scale of repetition rather than a steady rhythm experienced by a reader.

The contributor estimated one to five milliseconds for the replacement on those pages. The earlier 80 to 227 milliseconds came from actual page profiles. Adding the estimated savings to the measured lookup savings would produce an attractive headline number with no matching experiment behind it. The two tests used different time windows, different sets of pages and different ways of arriving at the final figure.

Swipe or scroll to see all columns.

Two tests with different units of evidence
OperationBeforeAfterBasis
Match bid to request250–400 ms50–80 msOne 45-second article scroll, both measured
Read configuration80–227 msAbout 1–5 msThree 60-second visits, after value estimated

What a publisher could measure on its own pages

Imagine a reader arriving from a newsletter on a long investigation. The first ad slot can request bids while the reader is still at the top. A lower slot might wait until several paragraphs later. A browser may be handling a scroll, laying out an image and processing bids around the same time. Reducing auction bookkeeping can free up the processor when those tasks compete. It does not shorten the physical round trip to an advertiser or guarantee an ad is ready before the slot comes into view.

How publishers distinguish measured impressions from viewable ones

For a meaningful comparison of two builds, the unit can be a visit that reaches the same marked paragraph and triggers the same slots. Record the auctions actually run in both versions. If five auctions ran in one test and two in the other, a lower total time in the second version could simply mean less bidding took place. Keeping the test device, article, scroll path and consent state consistent makes the result easier to interpret. Live bidder participation can still differ between visits, so one recording is weak evidence of an improvement in every session.

The commercial question needs another observation. If more ads become viewable, compare viewable impressions against measured impressions on equivalent inventory. If revenue per visit rises, compare completed visits with similar traffic sources and auction opportunities. The release notes provide neither result. What publishers have today is a pair of identifiable pieces of software work, a reproducible scroll journey for the first and a measured call count for the second. That is enough to investigate where an article spends processor time without putting an invented dollar value on it.

DPN Daily

Get the latest on publisher revenue, search traffic and subscriptions in your inbox.