mpv-v8v7
August 12, 2025 ยท View on GitHub
mpv-v8v7 is a script for running v8-v7 benchmark tests inside the mpv player. The original benchmark code comes from mozilla/arewefastyet and is bundled and converted into a CommonJS format compatible with mpv using ahaoboy/js-engine-benchmark.
How it Works
- When mpv starts, the script will pause the video.
- It runs the benchmark test.
- The test results are displayed on the mpv screen via OSD (On-Screen Display).
- After the test finishes, the results are saved to a log file in the following path:
scripts/mpv-v8v7-<timestamp>.log
Requirements
- mpv with JavaScript scripting enabled.
mpv.confandscriptsfolder accessible for placing the script.
Installation
Download mpv-osc.zip or portable_config.zip from mpv-build
bench mpv-x86_64-v3
https://github.com/zhongfly/mpv-winbuild
https://github.com/shinchiro/mpv-winbuild-cmake
https://github.com/Andarwinux/mpv-winbuild
https://nightly.link/mpv-player/mpv/workflows/build/master mpv-x86_64-pc-windows-msvc
https://nightly.link/mpv-player/mpv/workflows/build/master mpv-x86_64-w64-mingw32
V8V7_RUNS
The default value is 1, and you can set it to 10 to run ten times, which can be used to eliminate accidental errors.
bash
V8V7_RUNS=10 ./mpv.exe --idle
fish
set -x V8V7_RUNS 10 ./mpv.exe --idle
V8V7_QUIT
Quit mpv after running the test