code: def _perfcheck(object=None):
      import time
  
      if object is None:
          object = [("string", (1, 2), [3, 4], {5: 6, 7: 8})] * 100000
      p = PrettyPrinter()
      t1 = time.perf_counter()
      p._safe_repr(object, {}, None, 0, True)
      t2 = time.perf_counter()
      p.pformat(object)
      t3 = time.perf_counter()
      print("_safe_repr:", t2 - t1)
      print("pformat:", t3 - t2)
  
imports: import collections
  import dataclasses
  import re
  import sys
  import types
  from io import StringIO
label_desc: Use image node_id 9 for calling a global function with example usage: _perfcheck(object) without return types