Skip to content

Instantly share code, notes, and snippets.

@suguru03
Last active June 2, 2016 17:04
Show Gist options
  • Save suguru03/b35074cd74e132ffdd7cb10940b3b873 to your computer and use it in GitHub Desktop.
Save suguru03/b35074cd74e132ffdd7cb10940b3b873 to your computer and use it in GitHub Desktop.
/**
* How to use.
* 1. access to http://suguru03.github.io/yasuda-benchmark/
* 2. gist("https://gist.github.com/suguru03/b35074cd74e132ffdd7cb10940b3b873").execute();
*/
var root = this;
var setup = function() {
this.array1 = Array(100);
this.array2 = Array(100);
};
var funcs = {
'array#cocnat': function() {
return this.array1.concat(this.array2);
},
'array#push': function() {
Array.prototype.push.apply(this.array1, this.array2);
return this.array1;
}
};
root
.setup(setup)
.set(funcs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment