forked from github.com/blag
make linter happy
This commit is contained in:
@@ -1,10 +1,19 @@
|
|||||||
|
"""Benchmark for Blag."""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
from argparse import Namespace
|
||||||
|
|
||||||
import blag
|
import blag
|
||||||
from blag.blag import build
|
from blag.blag import build
|
||||||
|
|
||||||
|
|
||||||
def test_performance(args) -> None:
|
def test_performance(args: Namespace) -> None:
|
||||||
|
"""Test performance.
|
||||||
|
|
||||||
|
This test checks how quickly blag can generate `FILES` amount of pages from
|
||||||
|
markdown.
|
||||||
|
|
||||||
|
"""
|
||||||
FILES = 1000
|
FILES = 1000
|
||||||
print(f"Generating {FILES} files")
|
print(f"Generating {FILES} files")
|
||||||
# create random markdown files in the content directory
|
# create random markdown files in the content directory
|
||||||
|
|||||||
Reference in New Issue
Block a user