This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# benchmark for http://stackoverflow.com/questions/34511759/remove-superstrings-from-an-array/34511965 | |
require 'benchmark' | |
source = [ "Rough Collie", "Alsatian", "Standard Poodle", "Poodle", "Collie", "Schnauser", "Border Collie", "Chihuahua" ] | |
n = 100000 | |
Benchmark.bm do |x| | |
x.report('delete_if+any') { | |
n.times{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//add averages to http://goalsmashers.github.io/css-minification-benchmark/ | |
//use jquery | |
var body = document.getElementsByTagName("body")[0]; | |
var script = document.createElement('script'); | |
script.type = "text/javascript"; | |
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"; | |
var f = function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem 'colorize' | |
gem 'heap_dump', git:'git://github.com/Vasfed/heap_dump.git' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rvm get head | |
rvm reload | |
curl https://raw.github.com/Vasfed/rvm-patchsets/master/patches/ruby/1.9.3/p125/railsexpress/02-railsbench-gc.patch > $rvm_path/patches/ruby/1.9.3/p125/railsexpress/02-railsbench-gc.patch | |
rvm reinstall 1.9.3-p125 --patch railsexpress -n railsexpress | |
rvm use 1.9.3-p125-railsexpress | |
echo May be done |