Skip to content

Instantly share code, notes, and snippets.

bnorick

Block or report user

Report or block bnorick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bnorick
bnorick / time_dict_merge.py
Last active Sep 3, 2019 — forked from treyhunner/time_dict_merge.py
Test performance of different dictionary merging functions in Python
View time_dict_merge.py
"""
Results:
multiple_update: 56 ms
copy_and_update: 48 ms
dict_constructor: 56 ms
kwargs_hack: 44 ms
dict_comprehension: 97 ms
concatenate_items: 196 ms
union_items: 168 ms
You can’t perform that action at this time.