Avatar for the collerek user
collerek
ormar
BlogDocs

Cache the relation map dictionary

#1076
Comparing
marpulli:speed-up
(
b97f5a5
) with
master
(
1ed0d5a
)
CodSpeed Performance Gauge
-27%
Improvements
1
Regressions
6
Untouched
77
New
0
Dropped
0
Ignored
0

Benchmarks

Failed

test_max[250]Regression
benchmarks/test_benchmark_aggregate.py::test_max[250]
CodSpeed Performance Gauge
-26%
2.8 ms
3.8 ms
test_min[1000]Regression
benchmarks/test_benchmark_aggregate.py::test_min[1000]
CodSpeed Performance Gauge
-27%
3.4 ms
4.6 ms
test_making_and_inserting_models_in_bulk[10]Regression
benchmarks/test_benchmark_bulk_create.py::test_making_and_inserting_models_in_bulk[10]
CodSpeed Performance Gauge
-15%
4.2 ms
4.9 ms
test_first[250]Regression
benchmarks/test_benchmark_get.py::test_first[250]
CodSpeed Performance Gauge
-24%
2.8 ms
3.7 ms
test_get_or_create_when_get[250]Regression
benchmarks/test_benchmark_get.py::test_get_or_create_when_get[250]
CodSpeed Performance Gauge
-26%
2.8 ms
3.8 ms
test_get_or_none[250]Regression
benchmarks/test_benchmark_get.py::test_get_or_none[250]
CodSpeed Performance Gauge
-24%
2.9 ms
3.8 ms

Improved

test_count[1000]
benchmarks/test_benchmark_aggregate.py::test_count[1000]
CodSpeed Performance Gauge
+26%
6.2 ms
4.9 ms

Passed

test_making_and_inserting_models_in_bulk[40]
benchmarks/test_benchmark_bulk_create.py::test_making_and_inserting_models_in_bulk[40]
CodSpeed Performance Gauge
+3%
10.4 ms
10.1 ms
test_making_and_inserting_models_in_bulk[20]
benchmarks/test_benchmark_bulk_create.py::test_making_and_inserting_models_in_bulk[20]
CodSpeed Performance Gauge
+2%
5.9 ms
5.7 ms
test_values[1000]
benchmarks/test_benchmark_values.py::test_values[1000]
CodSpeed Performance Gauge
+2%
22 ms
21.6 ms
test_values[250]
benchmarks/test_benchmark_values.py::test_values[250]
CodSpeed Performance Gauge
+1%
6.8 ms
6.7 ms
test_deleting_all[500]
benchmarks/test_benchmark_delete.py::test_deleting_all[500]
CodSpeed Performance Gauge
+1%
3.1 ms
3.1 ms
test_values[500]
benchmarks/test_benchmark_values.py::test_values[500]
CodSpeed Performance Gauge
+1%
11.9 ms
11.8 ms
test_first[1000]
benchmarks/test_benchmark_get.py::test_first[1000]
CodSpeed Performance Gauge
+1%
4.3 ms
4.3 ms
test_values_list[1000]
benchmarks/test_benchmark_values.py::test_values_list[1000]
CodSpeed Performance Gauge
0%
22.8 ms
22.7 ms
test_deleting_individually[10]
benchmarks/test_benchmark_delete.py::test_deleting_individually[10]
CodSpeed Performance Gauge
0%
10.8 ms
10.8 ms
test_deleting_individually[40]
benchmarks/test_benchmark_delete.py::test_deleting_individually[40]
CodSpeed Performance Gauge
0%
35.6 ms
35.5 ms
test_max[1000]
benchmarks/test_benchmark_aggregate.py::test_max[1000]
CodSpeed Performance Gauge
0%
4.6 ms
4.6 ms
test_updating_models_individually[40]
benchmarks/test_benchmark_update.py::test_updating_models_individually[40]
CodSpeed Performance Gauge
0%
46.5 ms
46.4 ms
test_iterate[250]
benchmarks/test_benchmark_iterate.py::test_iterate[250]
CodSpeed Performance Gauge
0%
41.7 ms
41.7 ms
test_iterate[1000]
benchmarks/test_benchmark_iterate.py::test_iterate[1000]
CodSpeed Performance Gauge
0%
159.8 ms
159.9 ms
test_iterate[500]
benchmarks/test_benchmark_iterate.py::test_iterate[500]
CodSpeed Performance Gauge
0%
80.8 ms
80.8 ms
test_deleting_all[1000]
benchmarks/test_benchmark_delete.py::test_deleting_all[1000]
CodSpeed Performance Gauge
0%
4.8 ms
4.8 ms
test_deleting_individually[20]
benchmarks/test_benchmark_delete.py::test_deleting_individually[20]
CodSpeed Performance Gauge
0%
18.2 ms
18.2 ms
test_updating_models_individually[20]
benchmarks/test_benchmark_update.py::test_updating_models_individually[20]
CodSpeed Performance Gauge
0%
23.6 ms
23.7 ms
test_saving_models_individually[20]
benchmarks/test_benchmark_save.py::test_saving_models_individually[20]
CodSpeed Performance Gauge
0%
24.9 ms
24.9 ms
test_first[500]
benchmarks/test_benchmark_get.py::test_first[500]
CodSpeed Performance Gauge
0%
3.3 ms
3.3 ms
test_get_or_create_when_create[10]
benchmarks/test_benchmark_create.py::test_get_or_create_when_create[10]
CodSpeed Performance Gauge
0%
27.4 ms
27.4 ms
test_get_one[1000]
benchmarks/test_benchmark_get.py::test_get_one[1000]
CodSpeed Performance Gauge
0%
4.3 ms
4.3 ms
test_creating_models_individually[20]
benchmarks/test_benchmark_create.py::test_creating_models_individually[20]
CodSpeed Performance Gauge
0%
25 ms
25.1 ms
test_update_or_create_when_create[40]
benchmarks/test_benchmark_create.py::test_update_or_create_when_create[40]
CodSpeed Performance Gauge
0%
49.3 ms
49.4 ms
test_creating_models_individually[10]
benchmarks/test_benchmark_create.py::test_creating_models_individually[10]
CodSpeed Performance Gauge
0%
13.1 ms
13.1 ms
test_get_all[250]
benchmarks/test_benchmark_get.py::test_get_all[250]
CodSpeed Performance Gauge
0%
38.4 ms
38.5 ms
test_update_or_create_when_create[20]
benchmarks/test_benchmark_create.py::test_update_or_create_when_create[20]
CodSpeed Performance Gauge
0%
25 ms
25.1 ms
test_get_all[1000]
benchmarks/test_benchmark_get.py::test_get_all[1000]
CodSpeed Performance Gauge
0%
148.7 ms
149 ms
test_creating_models_individually[40]
benchmarks/test_benchmark_create.py::test_creating_models_individually[40]
CodSpeed Performance Gauge
0%
49.2 ms
49.3 ms
test_get_one[250]
benchmarks/test_benchmark_get.py::test_get_one[250]
CodSpeed Performance Gauge
0%
2.6 ms
2.6 ms
test_get_all[500]
benchmarks/test_benchmark_get.py::test_get_all[500]
CodSpeed Performance Gauge
0%
75.1 ms
75.3 ms
test_get_or_create_when_create[40]
benchmarks/test_benchmark_create.py::test_get_or_create_when_create[40]
CodSpeed Performance Gauge
0%
105.4 ms
105.7 ms
test_initializing_models[500]
benchmarks/test_benchmark_init.py::test_initializing_models[500]
CodSpeed Performance Gauge
0%
34.1 ms
34.2 ms
test_exists[1000]
benchmarks/test_benchmark_get.py::test_exists[1000]
CodSpeed Performance Gauge
0%
4.4 ms
4.4 ms
test_max[500]
benchmarks/test_benchmark_aggregate.py::test_max[500]
CodSpeed Performance Gauge
0%
3.4 ms
3.5 ms
test_update_or_create_when_create[10]
benchmarks/test_benchmark_create.py::test_update_or_create_when_create[10]
CodSpeed Performance Gauge
0%
13 ms
13 ms
test_get_or_none[500]
benchmarks/test_benchmark_get.py::test_get_or_none[500]
CodSpeed Performance Gauge
0%
3.3 ms
3.4 ms
test_exists[250]
benchmarks/test_benchmark_get.py::test_exists[250]
CodSpeed Performance Gauge
0%
4 ms
4 ms
test_initializing_models[1000]
benchmarks/test_benchmark_init.py::test_initializing_models[1000]
CodSpeed Performance Gauge
0%
67.7 ms
68 ms
test_get_or_create_when_create[20]
benchmarks/test_benchmark_create.py::test_get_or_create_when_create[20]
CodSpeed Performance Gauge
0%
53.2 ms
53.4 ms
test_saving_models_individually[40]
benchmarks/test_benchmark_save.py::test_saving_models_individually[40]
CodSpeed Performance Gauge
0%
49.9 ms
50.1 ms
test_get_or_create_when_get[1000]
benchmarks/test_benchmark_get.py::test_get_or_create_when_get[1000]
CodSpeed Performance Gauge
0%
4.3 ms
4.4 ms
test_initializing_models[250]
benchmarks/test_benchmark_init.py::test_initializing_models[250]
CodSpeed Performance Gauge
0%
18.6 ms
18.7 ms
test_deleting_all[250]
benchmarks/test_benchmark_delete.py::test_deleting_all[250]
CodSpeed Performance Gauge
0%
2 ms
2 ms
test_sum[1000]
benchmarks/test_benchmark_aggregate.py::test_sum[1000]
CodSpeed Performance Gauge
0%
4.6 ms
4.6 ms
test_updating_models_individually[10]
benchmarks/test_benchmark_update.py::test_updating_models_individually[10]
CodSpeed Performance Gauge
-1%
12.2 ms
12.3 ms
test_get_or_create_when_get[500]
benchmarks/test_benchmark_get.py::test_get_or_create_when_get[500]
CodSpeed Performance Gauge
-1%
3.4 ms
3.4 ms
test_min[500]
benchmarks/test_benchmark_aggregate.py::test_min[500]
CodSpeed Performance Gauge
-1%
3.4 ms
3.5 ms
test_sum[500]
benchmarks/test_benchmark_aggregate.py::test_sum[500]
CodSpeed Performance Gauge
-1%
3.4 ms
3.5 ms
test_sum[250]
benchmarks/test_benchmark_aggregate.py::test_sum[250]
CodSpeed Performance Gauge
-1%
3.8 ms
3.8 ms
test_avg[1000]
benchmarks/test_benchmark_aggregate.py::test_avg[1000]
CodSpeed Performance Gauge
-1%
4.6 ms
4.6 ms
test_get_one[500]
benchmarks/test_benchmark_get.py::test_get_one[500]
CodSpeed Performance Gauge
-1%
3.2 ms
3.3 ms
test_exists[500]
benchmarks/test_benchmark_get.py::test_exists[500]
CodSpeed Performance Gauge
-1%
3.4 ms
3.4 ms
test_count[500]
benchmarks/test_benchmark_aggregate.py::test_count[500]
CodSpeed Performance Gauge
-1%
4.6 ms
4.6 ms
test_saving_models_individually[10]
benchmarks/test_benchmark_save.py::test_saving_models_individually[10]
CodSpeed Performance Gauge
-1%
15.4 ms
15.6 ms
test_avg[250]
benchmarks/test_benchmark_aggregate.py::test_avg[250]
CodSpeed Performance Gauge
-1%
3.9 ms
3.9 ms
test_avg[500]
benchmarks/test_benchmark_aggregate.py::test_avg[500]
CodSpeed Performance Gauge
-1%
3.5 ms
3.5 ms
test_values_list[250]
benchmarks/test_benchmark_values.py::test_values_list[250]
CodSpeed Performance Gauge
-1%
8.1 ms
8.2 ms
test_count[250]
benchmarks/test_benchmark_aggregate.py::test_count[250]
CodSpeed Performance Gauge
-1%
3.6 ms
3.6 ms
test_min[250]
benchmarks/test_benchmark_aggregate.py::test_min[250]
CodSpeed Performance Gauge
-2%
3.8 ms
3.9 ms
test_updating_models_in_bulk[10]
benchmarks/test_benchmark_bulk_update.py::test_updating_models_in_bulk[10]
CodSpeed Performance Gauge
-3%
6.7 ms
6.9 ms
test_updating_models_in_bulk[20]
benchmarks/test_benchmark_bulk_update.py::test_updating_models_in_bulk[20]
CodSpeed Performance Gauge
-4%
11.2 ms
11.7 ms
test_updating_models_in_bulk[40]
benchmarks/test_benchmark_bulk_update.py::test_updating_models_in_bulk[40]
CodSpeed Performance Gauge
-4%
20.6 ms
21.5 ms
test_values_list[500]
benchmarks/test_benchmark_values.py::test_values_list[500]
CodSpeed Performance Gauge
-6%
11.6 ms
12.3 ms
test_get_or_none[1000]
benchmarks/test_benchmark_get.py::test_get_or_none[1000]
CodSpeed Performance Gauge
-8%
4 ms
4.4 ms

Commits

Click on a commit to change the comparison range
Base
master
1ed0d5a
-27%
Merge branch 'master' into speed-up
b97f5a5
9 months ago
by collerek
Home Terms PrivacyDocs