code: function setOptions(object, options) {
        options = object.options = _.assign({}, cloneDeep(object.constructor.options), cloneDeep(options));
  
        _.forOwn(options, function(value, key) {
          if (value != null) {
            // Add event listeners.
            if (/^on[A-Z]/.test(key)) {
              _.each(key.split(' '), function(key) {
                object.on(key.slice(2).toLowerCase(), value);
              });
            } else if (!_.has(object, key)) {
              object[key] = cloneDeep(value);
            }
          }
        });
      }
docs: A helper function for setting options/event handlers.
  
  @private
  @param {Object} object The benchmark or suite instance.
  @param {Object} [options={}] Options object.