start new:
tmux
start new with session name:
tmux new -s myname
| require "benchmark" | |
| Benchmark.bm(7) do |bench| | |
| bench.report("single") do | |
| 1_000_000.times do | |
| 'This is a string of substantial length. I doubt you will have many string | |
| literals in your code that are longer than this, but if there are actually | |
| costs to parsing double quoted strings this should exacerbate that.' | |
| end | |
| end |
| #!/bin/env ruby | |
| # lazy hack from Robert Klemme | |
| module Memory | |
| # sizes are guessed, I was too lazy to look | |
| # them up and then they are also platform | |
| # dependent | |
| REF_SIZE = 4 # ? | |
| OBJ_OVERHEAD = 4 # ? |
| source 'http://rubygems.org' | |
| gem 'sunzi' | |
| gem 'rake' | |
| gem 'fog' |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)