Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Perf #36439 -- Added performance benchmark foracheck_password hashing via asyncio#94

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
roelzkie15 wants to merge1 commit intodjango:main
base:main
Choose a base branch
Loading
fromroelzkie15:perf-36439-auth-hashing-benchmark

Conversation

@roelzkie15
Copy link

@roelzkie15roelzkie15 commentedJul 24, 2025
edited
Loading

This performance benchmark was added as part of thedjango/django/pull/19611 as requested by the reviewer.

Setup

Using the followingasv.config.json file:

{"version":1,"project":"Django","project_url":"https://www.djangoproject.com/","repo":"https://github.com/roelzkie15/django.git","branches": ["main"],"build_command": ["python -m pip install build bcrypt argon2-cffi","python -m build --wheel -o {build_cache_dir} {build_dir}"  ],"environment_type":"conda","show_commit_url":"https://github.com/roelzkie15/django/commit/","pythons": ["3.12","3.13"]}

You may also usevirtualenv for theenvironment_type, just make sure you're in a virtual environment.

Collecting data

Getting the result of themain branch (HEAD).

asv run main^! -b hasher_benchmarks

Getting the result of thepull request's branchfix-36439-auth-hashing-performance.

asv run fix-36439-auth-hashing-performance^! -b hasher_benchmarks

Then compare the benchmark:

asv compare main fix-36439-auth-hashing-performance --machine<os>

Result output from my benchmark:

All benchmarks:| Change| Before [77d455ae]<main>| After [ce3e0e7b]<fix-36439-auth-hashing-performance>|   Ratio| Benchmark (Parameter)||----------|----------------------------|---------------------------------------------------------|---------|----------------------------------------------------------------------------------------------------------|| -| 421±1ms| 151±0.4ms|    0.36| hasher_benchmarks.hash_acheck_password.benchmark.Hasher.time_acheck_password('PBKDF2PasswordHasher')|| -| 454±0.5ms| 163±0.2ms|    0.36| hasher_benchmarks.hash_acheck_password.benchmark.Hasher.time_acheck_password('PBKDF2SHA1PasswordHasher')|| -| 91.1±3ms| 74.2±0.3ms|    0.81| hasher_benchmarks.hash_acheck_password.benchmark.HasherArgon.time_acheck_password|| -| 697±0.4ms| 250±0.2ms|    0.36| hasher_benchmarks.hash_acheck_password.benchmark.HasherBcrypt.time_acheck_password|| -| 483±3ms| 179±1ms|    0.37| hasher_benchmarks.hash_acheck_password.benchmark.HasherScypt.time_acheck_password|

@roelzkie15roelzkie15force-pushed theperf-36439-auth-hashing-benchmark branch from47829a5 to61e8967CompareJuly 24, 2025 16:45
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@roelzkie15

[8]ページ先頭

©2009-2025 Movatter.jp