File: benchmark.py

package info (click to toggle)
python-syrupy 4.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,368 kB
  • sloc: python: 5,978; makefile: 3
file content (10 lines) | stat: -rw-r--r-- 200 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
from invoke import task


@task()
def benchmark(ctx, report=False):
    """
    Run and generate benchmarks for current code
    """

    ctx.run("pytest benchmarks --benchmark-json=benchmarks.json")