 
 # Utility methods.
 util =
+  # Benchmark a piece of code
+  bm: (name, fn) ->
+    time = new Date
+    result = fn()
+    # console.log "#{name} : #{new Date() - time}ms"
+    result
+
   # Computes the bounding box of a jQuery set, which may be many sibling
   # elements with no parent in the set.
   computeBoundingBox: ($contents) ->

      if el.nodeType == 1 and el.tagName != 'SCRIPT'
        $templateContents.push el
      el = el.nextSibling
    # Remove XRAY's template comments from the DOM.
    el.parentNode.removeChild(el) if el?.nodeType == 8
    comment.parentNode.removeChild(comment)
    # Add the template specimen

      height : boxFrame.bottom - boxFrame.top
    }

