We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54177a0 commit fb0523bCopy full SHA for fb0523b
benchmarks/settings.py
@@ -15,6 +15,7 @@
15
"benchmarks",
16
"benchmarks.template_benchmarks.template_render",
17
"benchmarks.template_benchmarks.template_compilation",
18
+ "benchmarks.template_benchmarks.template_tag_urlize",
19
"benchmarks.query_benchmarks.query_annotate",
20
"benchmarks.query_benchmarks.query_all_conv",
21
"benchmarks.query_benchmarks.query_complex_filter",
benchmarks/template_benchmarks/template_tag_urlize/__init__.py
benchmarks/template_benchmarks/template_tag_urlize/benchmark.py
@@ -0,0 +1,12 @@
1
+from django.template.defaultfilters import urlize
2
+
3
+from ...utils import bench_setup
4
5
6
+class Urlize:
7
+ def setup(self):
8
+ bench_setup()
9
10
+ def time_urlize(self):
11
+ urlize("Django. " * 100)
12
+ urlize("https://www.djangoproject.com/ " * 100)
0 commit comments