16 lines
398 B
Python
16 lines
398 B
Python
"""Placeholder benchmark for the boilerplate project."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
class TimeSuite:
|
|
"""Simple benchmark suite for ASV."""
|
|
|
|
def time_sum_small_range(self) -> None:
|
|
"""Benchmark summing a small range."""
|
|
sum(range(100))
|
|
|
|
def time_list_comprehension(self) -> None:
|
|
"""Benchmark list comprehension."""
|
|
[x * 2 for x in range(100)]
|