Skip to content

Instantly share code, notes, and snippets.

View jmstacey's full-sized avatar

Jon Stacey jmstacey

View GitHub Profile
@jmstacey
jmstacey / gist:3890814
Created October 15, 2012 04:23
Rubinius Profiler Graph
Jon-Staceys-iMac:Desktop jon$ time rubinius/bin/rbx -X19 -Xprofile -Xprofiler.graph ./run.rb
500000
===== Thread 1 =====
Total running time: 16.516832237000003s
index % time self children called name
----------------------------------------------------------
[1] 99.8 0.00 16.48 1 Rubinius::Loader#script [1]
0.00 16.48 1 Rubinius::CodeLoader.load_script [2]
-------------------------------------------------------
0.00 16.48 1 Rubinius::Loader#script [1]
@jmstacey
jmstacey / obj.rb
Created October 20, 2012 00:22
Object Instance Stress Test
class TestObject
def initialize
@one_var = true
end
end
objects = Array.new
Jon-Staceys-iMac:Desktop jon$ time jmstacey-rubinius/bin/rbx -X19 -Xprofile ./obj.rb
1000000 objects created.
2000000 objects created.
3000000 objects created.
4000000 objects created.
5000000 objects created.
6000000 objects created.
7000000 objects created.
8000000 objects created.
9000000 objects created.
...
/Users/bamboo/.bup: Permission denied
Traceback (most recent call last):
File "/usr/lib/bup/cmd/bup-midx", line 231, in <module>
git.check_repo_or_die()
File "/usr/lib/bup/bup/git.py", line 850, in check_repo_or_die
init_repo()
File "/usr/lib/bup/bup/git.py", line 827, in init_repo
_git_wait('git init', p)
File "/usr/lib/bup/bup/git.py", line 886, in _git_wait
### Keybase proof
I hereby claim:
* I am jmstacey on github.
* I am jmstacey (https://keybase.io/jmstacey) on keybase.
* I have a public key ASDAzj5grNTsb1RGvHM2eKUCZ5mqj17DugCq7RZFk7wiCgo
To claim this, I am signing this object: