Skip to content

Instantly share code, notes, and snippets.

View kuleszaj's full-sized avatar

Justin Kulesza kuleszaj

  • Grand Rapids, MI
View GitHub Profile
@kuleszaj
kuleszaj / gist:4164778
Created November 28, 2012 21:40
Chef Pattern Directory Structure
├── Capfile
├── Gemfile
├── Gemfile.lock
├── README
├── Rakefile
├── app
├── bin
├── config
│ ├── deploy
│ │ ├── demo.rb
@kuleszaj
kuleszaj / benchmark4.sh
Created October 19, 2012 17:11
benchmark4.sh
jk@linux ~ $ which ruby
/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby
jk@linux ~ $ time ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count"
100000000
real 0m3.922s
user 0m3.908s
sys 0m0.020s
@kuleszaj
kuleszaj / benchmark3.sh
Created October 19, 2012 17:10
benchmark3.sh
jk@linux /opt/ruby192 $ time bin/ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count"
100000000
real 0m3.839s
user 0m3.816s
sys 0m0.028s
@kuleszaj
kuleszaj / benchmark1.sh
Created October 19, 2012 17:10
benchmark1.sh
jk@linux ~ $ which ruby
/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby
jk@linux ~ $ time ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count"
100000000
real 0m9.019s
user 0m8.933s
sys 0m0.016s
solaris [~]# which ruby
@kuleszaj
kuleszaj / benchmark2.sh
Created October 19, 2012 17:08
benchmark2.sh
jk@linux ~ $ time perl -e '$count = 0; while ($count < 10000000) { $count ++; } print $count;'
10000000
real 0m0.856s
user 0m0.840s
sys 0m0.008s
solaris [~]# time perl -e '$count = 0; while ($count < 10000000) { $count ++; } print $count;'
10000000
real 0m1.052s
user 0m1.035s
@kuleszaj
kuleszaj / benchmark_2
Created October 19, 2012 17:07
benchmark_2
jk@linux ~ $ time perl -e '$count = 0; while ($count < 10000000) { $count ++; } print $count;'
10000000
real 0m0.856s
user 0m0.840s
sys 0m0.008s
solaris [~]# time perl -e '$count = 0; while ($count < 10000000) { $count ++; } print $count;'
10000000
real 0m1.052s
user 0m1.035s
@kuleszaj
kuleszaj / gist:3354656
Created August 15, 2012 01:43
rvm test run, ubuntu 10.04
admin@ubuntu:~/rvmtesting$ tf --text ~/rvm/rvm-test/fast/do_comment_test.sh
##### starting test do.
$ source "$rvm_path/scripts/rvm"
$ rvm use 1.8.7 --install
Using /home/admin/rvmtesting/gems/ruby-1.8.7-p370
Running /home/admin/rvmtesting/hooks/after_use
# passed: status = 0
$ rvm gemset create test1
'test1' gemset created (/home/admin/rvmtesting/gems/ruby-1.8.7-p370@test1).
# passed: status = 0
@kuleszaj
kuleszaj / gist:3354637
Created August 15, 2012 01:41
rvm test run, osx 10.8
jk@gerty ~/rvmtesting $ tf --text ~/git/rvm-test/fast/do_comment_test.sh
##### starting test do.
$ source "$rvm_path/scripts/rvm"
$ rvm use 1.8.7 --install
Using /Users/jk/rvmtesting/gems/ruby-1.8.7-p370
Running /Users/jk/rvmtesting/hooks/after_use
# passed: status = 0
$ rvm gemset create test1
'test1' gemset created (/Users/jk/rvmtesting/gems/ruby-1.8.7-p370@test1).
# passed: status = 0
@kuleszaj
kuleszaj / gist:3354612
Created August 15, 2012 01:39
rvm test run, centos 6.3
vagrant@vdevcentos ~/rvmtesting $ tf --text ~/rvm/rvm-test/fast/do_comment_test.sh
##### starting test do.
$ source "$rvm_path/scripts/rvm"
$ rvm use 1.8.7 --install
Using /home/vagrant/rvmtesting/gems/ruby-1.8.7-p370
Running /home/vagrant/rvmtesting/hooks/after_use
# passed: status = 0
$ rvm gemset create test1
'test1' gemset created (/home/vagrant/rvmtesting/gems/ruby-1.8.7-p370@test1).
@kuleszaj
kuleszaj / rvm_test.sh
Created August 15, 2012 01:04
rvm test run
jk@gerty ~/rvmtesting $ tf --text ~/git/rvm-test/fast/do_comment_test.sh
##### starting test do.
$ source "$rvm_path/scripts/rvm"
$ rvm use 1.8.7 --install
Using /Users/jk/rvmtesting/gems/ruby-1.8.7-p370
Running /Users/jk/rvmtesting/hooks/after_use
# passed: status = 0
$ rvm gemset create test1
'test1' gemset created (/Users/jk/rvmtesting/gems/ruby-1.8.7-p370@test1).
# passed: status = 0