From 1a209e7e413767be24a81ac7a26647c358611d58 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 27 Jan 2024 22:13:05 -0500 Subject: [PATCH] Add test that presumably will test import time. --- exercises.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/exercises.py b/exercises.py index c88fa983..3130e79c 100644 --- a/exercises.py +++ b/exercises.py @@ -43,3 +43,16 @@ def entrypoint_regexp_perf(): input = '0' + ' ' * 2**10 + '0' # end warmup re.match(importlib_metadata.EntryPoint.pattern, input) + + +def import_time_perf(): + "import time" + import sys + import importlib + + saved = dict(sys.modules) + + # end warmup + sys.modules.clear() + sys.modules.update(saved) + import importlib_metadata pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy