summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-19 22:33:02 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-19 22:33:02 +0000
commit57bb153456513d727f388bc4e6d9811dc1b4c79b (patch)
treec851233f4fbee1c7ffb62a220bac05cf15136584 /common.mk
parent55ae2402f40c428307a1ac1e8a9f2800a4a2f1bf (diff)
* common.mk: add new rules `gcbench-rdoc', `gcbench-hash'.
* tool/gcbench.rb: separate GC bench framework and process. * tool/hashbench1.rb, tool/hashbench2.rb: add two types GC bench. hashbench1: many temporal objects (GC by newobj) hashbench2: hash size becomes bigger and bigger (GC by malloc) Two benchs are executed by `gcbench-hash' rule. * tool/rdocbench.rb: separated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index d89f82d45b..2a9f1a4c0c 100644
--- a/common.mk
+++ b/common.mk
@@ -426,9 +426,17 @@ rdoc-coverage: PHONY main
RDOCBENCHOUT=/tmp/rdocbench
-rdoc-bench: PHONY ruby
+gcbench-rdoc: PHONY ruby
@echo Benchmark with Generating RDoc documentation
- $(Q) $(XRUBY) "$(srcdir)/tool/rdocbench.rb" --root "$(srcdir)" --page-dir "$(srcdir)/doc" --encoding=UTF-8 --no-force-update --all --ri --debug $(RDOCFLAGS) --quiet "$(srcdir)"
+ $(Q) $(XRUBY) "$(srcdir)/tool/gcbench.rb" "$(srcdir)/tool/rdocbench.rb" --root "$(srcdir)" --page-dir "$(srcdir)/doc" --encoding=UTF-8 --no-force-update --all --ri --debug $(RDOCFLAGS) --quiet "$(srcdir)"
+
+HASHBENCH_TYPE=1
+gcbench-hash: PHONY ruby
+ @echo "Benchmark with hashbench1 (many temporal objects / obj count intensive)"
+ $(Q) $(XRUBY) "$(srcdir)/tool/gcbench.rb" "$(srcdir)/tool/hashbench1.rb"
+ @echo
+ @echo "Benchmark with hashbench2 (increasing hash size / malloc intensive)"
+ $(Q) $(XRUBY) "$(srcdir)/tool/gcbench.rb" "$(srcdir)/tool/hashbench2.rb"
nodoc: PHONY