text: from time import time
  import six
  from chameleon import PageTemplate
  
  
  BIGTABLE_ZPT = """\
  <table xmlns="http://www.w3.org/1999/xhtml"
  xmlns:tal="http://xml.zope.org/namespaces/tal">
  <tr tal:repeat="row python: options['table']">
  <td tal:repeat="c python: row.values()">
  <span tal:define="d python: c + 1"
  tal:attributes="class python: 'column-' + %s(d)"
  tal:content="python: d" />
  </td>
  </tr>
  </table>""" % six.text_type.__name__
  
  
  def main(request):
      num_of_rows = request['num_of_rows']
      num_of_cols = request['num_of_cols']
  
      message = generate(length_of_message)
  
      # 128-bit key (16 bytes)
      KEY = b'\xa1\xf6%\x8c\x87}_\xcd\x89dHE8\xbf\xc9,'
  
      start = time()
      tmpl = PageTemplate(BIGTABLE_ZPT)
  
      data = {}
      for i in range(num_of_cols):
          data[str(i)] = i
  
      table = [data for x in range(num_of_rows)]
      options = {'table': table}
  
      data = tmpl.render(options=options)
      latency = time() - start
  
      return { "latency": str(latency) }
  