reflex/tests/benchmarks/test_compilation.py
Thomas Brandého d0199a326f
move benchmarks and add some more (#4758)
* move benchmarks and add some more

* change key and paths

* parametrize tests

* more specific ignore

* rename fixture

* remove previous file

* add tests for _compile_stateful_components
2025-02-05 13:19:45 -08:00

19 lines
424 B
Python

import pytest
from reflex.compiler.compiler import _compile_page, _compile_stateful_components
@pytest.mark.benchmark
def test_compile_page(evaluated_page):
_compile_page(evaluated_page, None)
@pytest.mark.benchmark
def test_compile_stateful(evaluated_page):
_compile_stateful_components([evaluated_page])
@pytest.mark.benchmark
def test_get_all_imports(evaluated_page):
evaluated_page._get_all_imports()