Linux 软件免费装
Banner图

Battery Surf Bench

开发者 erdembircan
更新时间 2026年11月13日 19:10
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

performance testing benchmark power battery

下载

1.0.0

详情介绍:

Battery Surf Bench is a WordPress plugin that measures your device's real-world battery drain. It unleashes a simulated web surfer on a course of content pages, samples your battery for the whole run, and projects an honest drain rate from what it actually measured. No lab hardware and no server of your own: just your browser, your battery, and a surfer that never gets tired. https://www.youtube.com/watch?v=X8CwzH_P4-g Made for WordPress Playground Battery Surf Bench is built to run in WordPress Playground, which runs a complete WordPress site, server and database included, inside your browser tab. Open this link and Playground starts a fresh site with the plugin installed and its cockpit open, with no server to rent, nothing to install and no account to create: https://playground.wordpress.net/?plugin=battery-surf-bench&url=/wp-admin/admin.php?page=bsbench-start-benchmark A battery benchmark should be something anyone with a laptop can run, not only people who already run a WordPress site. It measures the device in front of you, so the whole test, site included, runs on that device. Every Playground starts from the same clean WordPress, which keeps results comparable across laptops and browsers and keeps benchmarking away from any real site you run. The site, its database and your recorded sessions stay in your browser. Playground autosaves your recent sites in the browser; choose Save in browser storage to keep a site and its sessions for good. In Playground the page server runs on your device too, so a run also counts the work of serving each page: compare Playground runs with other Playground runs. The plugin installs on any WordPress site as well, if you'd rather use your own. An experiment in browser-native software Battery Surf Bench is also an experiment. Software that needs a server usually needs someone to host it, and software that doesn't usually has to stay small. We wanted to find out whether a desktop-grade application, with live dashboards, real-time charts, settings and a database of results, can skip that trade-off. WordPress provides the application platform, WordPress Playground handles everything a server and a database would, and you open a link and use the app. Highlights A benchmark that browses like a person The surfer is not a scripted macro. At every moment, its possible behaviors compete for its attention, weighted by its personality and by what the current page actually offers, and the winner plays out. The behavior profile is tuned from published battery-benchmark methodologies and real-user browsing telemetry, and it shows: Ready-made surfer personalities cover the spectrum, from a patient, text-hungry scholar to a restless doomscroller. Want something more specific? Open the customizer and shape your own visitor against a fixed budget: how briskly it moves, how long it stays put, how strongly text pulls at it, how strongly images and video do, and how twitchy it gets when idle. A course worth surfing Five bundled pages give the surfer a balanced, realistic workload out of the box: a long-form article, an image gallery, a skimmable listicle, a video feature, and a link hub. Each carries its own self-contained design, so the workload stays consistent no matter which theme the site runs. Prefer your own content? The settings screen lets you build a custom course from any of your site's posts and pages (those render through your theme, exactly as visitors see them), reorder it freely, and mix in the bundled pages wherever you like. Pages later removed or unpublished quietly drop out of the rotation without breaking your saved configuration. The cockpit Every run happens in the cockpit, a purpose-built dashboard that stays out of the data's way: Numbers you can trust Every run remembered Every run, whether it finished, was stopped early, or got interrupted, is stored as a benchmark session: Private by design Speaks your language Fully translation-ready. Help translate Battery Surf Bench into your language on translate.wordpress.org.

安装:

The quickest way to run a benchmark is WordPress Playground, with nothing to install: open https://playground.wordpress.net/?plugin=battery-surf-bench&url=/wp-admin/admin.php?page=bsbench-start-benchmark, unplug your laptop, and start a benchmark from the cockpit. To install it on your own site:
  1. Upload the plugin to wp-content/plugins/battery-surf-bench, or install it through the Plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Unplug your laptop, open the Battery Surf Bench admin menu (or the Start Benchmark shortcut in the admin bar), and start a benchmark from the cockpit.

屏幕截图:

  • A finished run's postcard, reopened from the Sessions screen: the measured drain staircase against the projected full discharge, with the run's key figures.
  • Setting up a run: a fixed duration or a target drop, a ready-made surfer personality or your own mix, and the playback speed.
  • The Sessions screen keeps every run, with its status, battery span, drain rates and projected full-battery runtime.
  • The settings screen: choose the pages the surfer visits from the five bundled pages and your own posts and pages, and put them in order.

常见问题:

Do I need my own WordPress site?

No. Open the plugin in WordPress Playground (see Installation) and it runs on a fresh WordPress site inside your browser, with nothing to host or install. It works on your own site too.

Who can run a benchmark?

Only users with WordPress's manage_options capability, which administrators have. The cockpit, the simulated surf pages and all recorded sessions are gated behind that capability; anonymous and unauthorised users cannot reach them.

Which browsers are supported?

Battery measurement relies on the Battery Status API, currently available in Chromium-based browsers (Chrome, Edge, Opera and others) on battery-powered devices. The cockpit detects support up front and blocks the run with a clear warning, instead of reporting a fabricated rate, if the browser cannot provide battery readings.

Can I benchmark my own pages instead of the bundled ones?

Yes. The settings screen lets you compose the surf course from your own posts and pages alongside (or instead of) the bundled ones, and reorder the sequence freely. Pages that are later trashed or unpublished drop out of the rotation automatically without breaking your saved configuration.

Does the plugin contact external servers or track users?

The plugin itself sends no telemetry, analytics or phone-home requests. Its one outside contact is YouTube, for the video on the bundled course's video page: during a run, your site fetches that video's embed code from YouTube, and the operator's browser loads YouTube's player. The External services section of the description lists what is sent and when, with links to YouTube's terms and privacy policy.

Why is there a YouTube video in the surf course?

Because real-world browsing includes video, and video is one of the heaviest things a browser asks of a battery; leaving it out would understate the drain. The video plays in YouTube's privacy-enhanced embed: it never autoplays, it stays muted, and the surfer decides when to watch and when to move on. It is only ever shown to the operator running a benchmark, and a YouTube embed on your own selected surf pages behaves the same way during a run.

更新日志:

1.0.0