• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 MotionMark11Probe(MotionMark1Probe):
15  __doc__ = MotionMark1Probe.__doc__
16  NAME = "motionmark_1.1"
17
18
19class MotionMark11Story(MotionMark1Story):
20  NAME = "motionmark_1.1"
21  URL: str = "https://chromium-workloads.web.app/motionmark/v1.1/MotionMark/"
22  URL_OFFICIAL: str = "https://browserbench.org/MotionMark1.1/"
23
24
25class MotionMark11Benchmark(MotionMark1Benchmark):
26  """
27  Benchmark runner for MotionMark 1.1.
28
29  See https://browserbench.org/MotionMark1.1/ for more details.
30  """
31
32  NAME = "motionmark_1.1"
33  DEFAULT_STORY_CLS = MotionMark11Story
34  PROBES = (MotionMark11Probe,)
35
36  @classmethod
37  def version(cls) -> Tuple[int, ...]:
38    return (1, 1)
39