
GPU timestamps, when a device exposes the feature, answer a different question from a stopwatch around a JavaScript call. Command construction and GPU execution can overlap. The browser interface at the center of this behavior is GPUQuerySet.
The interface behind the interaction
A timer around queue.submit() measures how long JavaScript spends submitting work. To measure a GPU pass, check that the adapter supports timestamp-query and request that feature when creating the device. Use timestampWrites to record the start and end of the pass, resolve the two timestamps into a buffer, then copy them to a buffer you can read. Subtract the first value from the second. The values are in nanoseconds, though their precision can be coarser. WebGPU timestamp queries.
What to record during the test
Run a repeated draw workload. Compare wall-clock time with a supported timestamp query and record which stages each clock actually covers.
For this run, capture the input, the user-visible result and the condition in which it was observed. On the comparison device, use the same input before changing any settings. If the outcome differs, attach a short trace to the result so that the next engineer can tell where the behavior started to diverge.
Check the individual members
The compatibility record for a whole interface can predate a particular capability. The implementation decision for GPUQuerySet depends on which member the application actually uses. Read the three desktop entries in order: Chrome, Firefox, then Safari.
count— version 144, conditional or historical entry, version 26.destroy— version 144, conditional or historical entry, version 26.label— version 144, conditional or historical entry, version 26.
Which browsers record support for GPUQuerySet?
The table gives a concrete reason to build a second route for this feature. Firefox on Android has no affirmative full-support version in this comparison. Check the detailed notes for the particular browser you ship and decide which part of the task should remain available.
| Browser family | First recorded standard entry |
|---|---|
| Chrome desktop | Version 144 in this snapshot. Chrome 113 shipped WebGPU on supported ChromeOS, Windows and macOS devices. Chrome 144 began the Linux rollout on Intel Gen12+ GPUs. Chrome platform overview · Chrome 144 release notes. |
| Firefox desktop | Conditional or historical entry |
| Safari on macOS | Version 26 |
| Chrome on Android | Version 121 |
| Firefox on Android | No support recorded |
| Safari on iOS | Version 26 |
Source snapshot: MDN Browser Compatibility Data 8.1.10, 19 November 2026. “Version” is the first recorded entry in this comparison. Individual methods can have later introduction dates.
Plan for the unavailable case
Handle the optional timestamp feature and avoid presenting two clocks as a complete account of end-to-end display latency.
typeof globalThis.GPUQuerySet !== "undefined"This expression checks the interface or property in the current JavaScript environment. A positive answer does not run the device test above. Consult the member-level entries for count, destroy, label when any of them is a requirement.
Sources and further reading
- GPUQuerySet reference and member details
- Interface specification
- MDN compatibility data, version 8.1.10
Cover photograph: Asus C501PS Nvidia Geforce 7600 graphics card 2 by MKFI. Public domain. Cropped and typeset for this cover. The photograph illustrates the topic.
