Skip to content

Instantly share code, notes, and snippets.

@sandinist
sandinist / class_by_poc.rb
Created April 17, 2012 08:34 — forked from wtnabe/class_by_poc.rb
fabrication with faker and forgery
class Company
def initialize
@name = nil
@addr = nil
@url = nil
@tel = nil
@email = nil
@foundation = nil
end
$ ruby -v bench.rb
ruby 1.9.2dev (2010-01-05 trunk 26241) [x86_64-darwin10.2.0]
Content-Type: text/html
Result:500000500000<br>
Sec:0.058694
$ php -v
PHP 5.3.0 (cli) (built: Jul 19 2009 00:34:29)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies