Skip to content

Instantly share code, notes, and snippets.

View 5v3n's full-sized avatar

Sven Kräuter 5v3n

View GitHub Profile
@5v3n
5v3n / gc_test.rb
Created October 4, 2010 19:48 — forked from mattetti/gc_test.rb
# hacking some lines to get into the ruby object allocation process...
# Enable the GC profiler:
GC::Profiler.enable
# If our test create too many objects forcing the GC to run,
# we can disable the GC to properly see the object allocation
# GC.disable
def count_string_allocations
<%#
# search given tags...
%>
<%
require File.join(File.dirname(__FILE__), 'src', 'toto_decoration')
decorator = TotoDecoration.new
%>
http://www.ixquick.com/do/metasearch.pl?&cat=web&query=
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'digest/md5'
require 'csv'
require 'json'
require 'curb'
require 'pp'
data = []