This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyperf | |
import time | |
from concurrent.futures import ThreadPoolExecutor | |
from django.utils.functional import cached_property as dj_cached_property | |
from functools import cached_property as py_cached_property | |
# Most web requests have some IO, like database access. Simulate with sleeping | |
SLEEP_TIME = 0.01 |