
Quit all other Applications: To make it a fair comparison. Turn up brightness: For consistency's sake, turn up your screen brightness all the way (after the AC power has been disconnected). Disable Screen Saver: Open System Preferences > Desktop & Screen Saver, then set the Screen Saver to 'Start after: Never'. Disable Sleep: Go to System Preferences > Energy Saver, click on the 'Battery' tab, and drag the 'Turn display off after' slider all the way to 'Never' (alternatively, you could run caffeinate in a separate Terminal window). This test script should run on any platform which supports Vagrant and VirtualBox, though it's only been tested on macOS, Fedora, and Ubuntu at this time. If you use Vagrant regularly, check to make sure you don't have any plugins installed which could affect the consistency of this test using vagrant plugin list! Other Platforms Note about Vagrant plugins: The author runs the tests without vagrant-cachier installed for consistency's sake. To run the script, you should already have the latest versions of Vagrant and VirtualBox installed. Run vagrant destroy -f to destroy the VM. Run vagrant up to configure a VM running Drupal on a standard LAMP stack. Write a counter, timestamp and the battery percentage (as reported by pmset) to a results file. The script does the following, in a loop: It downloads a copy of Drupal VM and repeatedly builds and destroys a Virtual Machine running Drupal.
With either System Information or coconutBattery, you can quickly see how much capacity it’s lost and whether it needs to be replaced.This repository contains a simple test script to emulate a relatively heavy workload for battery life testing. If you’ve got an older MacBook, the battery almost certainly holds less charge now than it did when it was new. Losing 15% capacity over almost three years isn’t too bad at all. When it was new, it had a capacity of 8755 mAh. When you run the app, you’ll see something like the screenshot below.Īs well as the cycle count, this app shows us that the battery now has a Full Charge Capacity of 7098 mAh. If you want a little bit more info that’s easier to understand, download the free app coconutBattery.
For example, it tells you your battery’s current maximum capacity but not it’s original capacity. System Information has most of the data you need to assess your battery’s health, but it’s not very well laid out and could provide a bit more information. If there is a problem with your battery, the “Condition” entry (which shows Normal in our example) will display something like “Service Battery.” Get a Bit More Information with coconutBattery The battery doesn’t need to be replaced yet, but it probably will need to be done later this year.
The MacBook in our example has a cycle count of 695.