1# Copyright 2023 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.jetstream.jetstream_2 import (JetStream2Benchmark, 10 JetStream2Probe, 11 JetStream2Story, 12 ProbeClsTupleT) 13 14 15class JetStream21Probe(JetStream2Probe): 16 __doc__ = JetStream2Probe.__doc__ 17 NAME: str = "jetstream_2.1" 18 19 20class JetStream21Story(JetStream2Story): 21 __doc__ = JetStream2Story.__doc__ 22 NAME: str = "jetstream_2.1" 23 URL: str = "https://chromium-workloads.web.app/jetstream/v2.1/" 24 URL_OFFICIAL: str = "https://browserbench.org/JetStream2.1/" 25 26 27class JetStream21Benchmark(JetStream2Benchmark): 28 """ 29 Benchmark runner for JetStream 2.1. 30 """ 31 32 NAME: str = "jetstream_2.1" 33 DEFAULT_STORY_CLS = JetStream21Story 34 PROBES: ProbeClsTupleT = (JetStream21Probe,) 35 36 @classmethod 37 def version(cls) -> Tuple[int, ...]: 38 return (2, 1) 39