blob: 29a240c99322a6411d3f4fcc576498e2003a0de3 [file] [log] [blame]
# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import annotations
from typing import Tuple
from crossbench.benchmarks.speedometer.speedometer import (ProbeClsTupleT,
SpeedometerBenchmark,
SpeedometerProbe)
from crossbench.benchmarks.speedometer.speedometer_2 import Speedometer2Story
class Speedometer20Probe(SpeedometerProbe):
NAME: str = "speedometer_2.0"
class Speedometer20Story(Speedometer2Story):
NAME: str = "speedometer_2.0"
URL: str = "https://browserbench.org/Speedometer2.0"
class Speedometer20Benchmark(SpeedometerBenchmark):
"""
Benchmark runner for Speedometer 2.0
"""
NAME: str = "speedometer_2.0"
DEFAULT_STORY_CLS = Speedometer20Story
PROBES: ProbeClsTupleT = (Speedometer20Probe,)
@classmethod
def version(cls) -> Tuple[int, ...]:
return (2, 0)