diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-27 03:20:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-27 03:20:35 +0000 |
commit | bd1e7e65ef07ca9fe24fdf8b81d899ad82e9e3b1 (patch) | |
tree | f2453edb619097b017cb6563c23e145783c8b402 /benchmark | |
parent | 26a884d95fe90f47ed79ab2a0babfb34154c899f (diff) | |
download | ruby-bd1e7e65ef07ca9fe24fdf8b81d899ad82e9e3b1.tar.gz ruby-bd1e7e65ef07ca9fe24fdf8b81d899ad82e9e3b1.tar.xz ruby-bd1e7e65ef07ca9fe24fdf8b81d899ad82e9e3b1.zip |
* vm_core.h (rb_vm_t), gc.c (rb_objspace, rb_newobj), vm.c
(Init_BareVM): per-VM object space support, which is disabled now.
* gc.c (rb_objspace_alloc), vm.c (Init_BareVM): should not use ruby
malloc here.
* gc.c (garbage_collect, etc): performance improvement by passing the
reference instead of refering the global variable in each functions.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
-rwxr-xr-x | benchmark/bm_vm3_gc.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/benchmark/bm_vm3_gc.rb b/benchmark/bm_vm3_gc.rb new file mode 100755 index 000000000..7db9829d4 --- /dev/null +++ b/benchmark/bm_vm3_gc.rb @@ -0,0 +1,7 @@ +#! /usr/bin/ruby +5000.times do + 100.times do + {"xxxx"=>"yyyy"} + end + GC.start +end |