1# Copyright 2024 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5from __future__ import annotations 6 7from typing import Tuple 8 9from crossbench.benchmarks.motionmark.motionmark_1 import (MotionMark1Benchmark, 10 MotionMark1Probe, 11 MotionMark1Story) 12 13 14class MotionMark10Probe(MotionMark1Probe): 15 __doc__ = MotionMark1Probe.__doc__ 16 NAME = "motionmark_1.0" 17 18 19class MotionMark10Story(MotionMark1Story): 20 NAME = "motionmark_1.0" 21 URL: str = "https://chromium-workloads.web.app/motionmark/v1.0/MotionMark/" 22 URL_OFFICIAL: str = "https://browserbench.org/MotionMark1.0/" 23 24 25class MotionMark10Benchmark(MotionMark1Benchmark): 26 """ 27 Benchmark runner for MotionMark 1.0. 28 29 See https://browserbench.org/MotionMark1.0/ for more details. 30 """ 31 32 NAME = "motionmark_1.0" 33 DEFAULT_STORY_CLS = MotionMark10Story 34 PROBES = (MotionMark10Probe,) 35 36 @classmethod 37 def version(cls) -> Tuple[int, ...]: 38 return (1, 0) 39