mpv-v8v7

August 12, 2025 ยท View on GitHub

image

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

  1. When mpv starts, the script will pause the video.
  2. It runs the benchmark test.
  3. The test results are displayed on the mpv screen via OSD (On-Screen Display).
  4. 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.conf and scripts folder 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

image

https://github.com/shinchiro/mpv-winbuild-cmake

image

https://github.com/Andarwinux/mpv-winbuild

image

https://nightly.link/mpv-player/mpv/workflows/build/master mpv-x86_64-pc-windows-msvc

image

https://nightly.link/mpv-player/mpv/workflows/build/master mpv-x86_64-w64-mingw32

image

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