/*globals App:true Ember before after bench*/

var view;

before(function() {
  var view;
  window.App = Ember.Namespace.create();

  App.View = Ember.View.extend({
    template: Ember.Handlebars.compile("{{view}}")
  });
});

after(function() {
  view.destroy();
});

bench("creating a new view", function() {
  Ember.run(function() {
    view = App.View.create().append();
  });
});

/*globals App:true Ember before after bench*/

var view;

before(function() {
  var view;
  window.App = Ember.Namespace.create();

  App.View = Ember.View.extend({
    template: Ember.Handlebars.compile("{{view}}")
  });

  App.View.create().destroy();
});

after(function() {
  view.destroy();
});

bench("creating a new view", function() {
  Ember.run(function() {
    view = App.View.create().append();
  });
});

Exclude initial proto from benchmark
Exclude initial proto from benchmark

Thanks @ebryn and @kselden
