Commit 3fe9517f authored by Michal Čihař's avatar Michal Čihař

Include benchmarking snippets

parent b4a8d354
# Python commands used for benchmarking
from trans.models import SubProject, Project
import cProfile
profiler = cProfile.Profile()
project = Project.objects.get(slug='test')
subproject = SubProject.objects.create(name='Benchmark', slug='benchmark', repo='weblate://test/android', filemask='po/*.po', project=project)
subproject = profiler.runcall(SubProject.objects.create, name='Benchmark', slug='benchmark', repo='weblate://test/android', filemask='po/*.po', project=project)
SubProject.objects.filter(slug='benchmark').delete()
subproject = profiler.runcall(SubProject.objects.create, name='Benchmark', slug='benchmark', repo='weblate://phpmyadmin/master', filemask='po/*.po', project=project)
subproject = profiler.runcall(SubProject.objects.create, name='Benchmark', slug='benchmark', repo='weblate://weblate/master', filemask='locale/*/LC_MESSAGES/djangojs.po', project=project)
``
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment