django / django-asv

Benchmarks for Django using asv
MIT License
40 stars 12 forks source link

Slow workflow; cache Django? #46

Closed smithdc1 closed 2 years ago

smithdc1 commented 2 years ago

Hey @deepakdinesh1123

Looking at https://github.com/smithdc1/django-asv/runs/6997443386?check_suite_focus=true we can see that only the benchmarks for the new test were run. However, this step still took 1 min 46s which seems like rather a long time?

I wonder if this is because of the time taken to download django/django. Maybe we could cache django/django to speed this up?

carltongibson commented 2 years ago

I wonder if this is because of the time taken to download django/django. Maybe we could cache django/django to speed this up?

Cloning django/django takes a while now. I've successfully used the --depth option to only pull one (or the few latest commits). Maybe this would be useful. 🤔 (Equally, maybe not if the caching works... 😜)