django / django-asv

Benchmarks for Django using asv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrating benchmarks from djangobench which use run_comparison_benchmark

deepakdinesh1123 opened this issue · comments

I was migrating some of the benchmarks from djangobench and I noticed that the benchmarks default_middleware and multi_value_dict use the utils.run_comparison_benchmark method to compare two benchmarks, ASV does not support a direct comparison between different benchmark methods. How should I implement this?

In the case of multi_value_dict its done to compare to a pure dictionary. I think it's fine to just benchmark the django class.

IIRC this is one of the core django classes so this one area we would like to keep track of. I'd expect small gains here will quickly add up.