Storage speed and battery in the browser: what you can check and what you cannot
A browser can time writes and reads in its own storage and report a quota. Battery level is available only in some browsers, and battery health never is.
Por Redação do HZBenchPublicado:
Este artigo está disponível apenas em inglês.
Web pages do not see your drive directly. They write to the browser's own storage for that site, and that is what a browser storage test measures: how fast the browser can write and read data on your device, including all the layers in between.
Speed and small-file latency
HZBench writes a test file (64 MB where the browser supports its private file system, 24 MB otherwise), reads it back, and times both. It also times many small 4 KiB operations, which matter more for app start-up and everyday responsiveness than big sequential speed. Results include the browser's overhead, so they are lower than native drive benchmarks; use them to compare devices or settings in the same browser.
Quota and usage
StorageManager.estimate() reports how much storage the current site uses and how much space is available to it [1]. The quota is the browser's limit for that site, not the free space on your drive, and browsers calculate it differently.
Battery
The Battery Status API can report the charge level and whether the device is charging, but it does not work in some of the most widely used browsers and needs a secure (HTTPS) page [2]. When it is missing, a browser test simply cannot see the battery. No browser API reports battery health or wear: for that, use your operating system's battery report or the manufacturer's tool.
| Question | Can a browser answer it? |
|---|---|
| How fast does the browser write and read here? | Yes, measured |
| How much storage may this site use? | Yes, as an estimate [1] |
| What is the battery level? Is it charging? | Only in browsers that support the Battery Status API [2] |
| How worn is the battery? What is the drive model? | No |
Step by step
- Close downloads and other heavy tabs, and leave enough free space on the drive.
- Run the storage test and note write speed, read speed and small-operation latency.
- Repeat on battery and on the charger if you are checking a laptop's power settings.
- Compare saved results rather than a single run.
Why results vary
The same drive can give different numbers in different browsers, because each stores site data in its own way. A nearly full drive, disk encryption, antivirus scanning and power-saving modes can all slow writes down. For a fair comparison between two computers, use the same browser, plug both in and leave free space on both drives. The small-operation latency is the most telling number for a slow-feeling laptop: an old hard disk is far slower at many small reads than an SSD, even when its large-file speed looks acceptable.
Fontes
- [1] StorageManager: estimate() method, MDN Web Docs (acessado )
- [2] Battery Status API, MDN Web Docs (acessado )