code: def speed_test_no_column():
      remap = remap_ids_v2(mapper)
      premap = premap_ids(mapper)
      keys = np.random.randint(0, N_symbols, N_tokens)
      with time_context() as elapsed:
          for i in range(100):
              remap(keys, False)
      remaptime = elapsed.elapsed
      with time_context() as elapsed:
          for i in range(100):
              premap(keys, False)
      premaptime = elapsed.elapsed
      print("remap", remaptime)
      print("premap", premaptime)
      print("speedup", remaptime / premaptime)
  
file_path: thinc/examples/benchmarks/mappers.py
imports: from thinc.api import remap_ids_v2
  from thinc.api import premap_ids
  from thinc.api import chain, Embed, HashEmbed
  import time
  import random
  import numpy
  import cupy
label_desc: Use image node_id 1 for calling a global function with example usage: speed_test_no_column() without return types