File tree 8 files changed +39
-23
lines changed
8 files changed +39
-23
lines changed Original file line number Diff line number Diff line change
1
+ Thu Jun 20 15:14:00 2013 Koichi Sasada <ko1@atdot.net>
2
+
3
+ * benchmark/gc: create a directory to store GC related benchmark.
4
+
5
+ * benchmark/gc/gcbench.rb: moved from tool/gcbench.rb.
6
+
7
+ * benchmark/gc/hash(1|2).rb: ditto.
8
+
9
+ * benchmark/gc/rdoc.rb: ditto.
10
+
11
+ * benchmark/gc/null.rb: added.
12
+
13
+ * common.mk: fix rule.
14
+
1
15
Thu Jun 20 14:09:54 2013 Koichi Sasada <ko1@atdot.net>
2
16
3
17
* tool/hashbench1.rb: fix paramter too. Increase temporary objects.
Original file line number Diff line number Diff line change 2
2
require 'benchmark'
3
3
require 'pp'
4
4
5
- script = ARGV . shift || raise
5
+ script = File . join ( __dir__ , ARGV . shift )
6
+ script += '.rb' unless FileTest . exist? ( script )
7
+ raise "#{ script } not found" unless FileTest . exist? ( script )
8
+
9
+ puts "Script: #{ script } "
6
10
7
11
GC ::Profiler . enable
8
12
tms = Benchmark . measure { |x |
14
18
gc_time = GC ::Profiler . total_time
15
19
16
20
puts
21
+ puts script
17
22
puts Benchmark ::CAPTION
18
23
puts tms
19
24
puts "GC total time (sec): #{ gc_time } "
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ # null
Original file line number Diff line number Diff line change
1
+ require 'rdoc/rdoc'
2
+ require 'tmpdir'
3
+
4
+ srcdir = File . expand_path ( '../..' , __dir__ )
5
+
6
+ Dir . mktmpdir ( 'rdocbench-' ) { |d |
7
+ dir = File . join ( d , 'rdocbench' )
8
+ args = %W( --root #{ srcdir } --page-dir #{ srcdir } /doc --encoding=UTF-8 --no-force-update --all --ri --debug --quiet #{ srcdir } )
9
+ args << '--op' << dir
10
+
11
+ r = RDoc ::RDoc . new
12
+ r . document args
13
+ }
Original file line number Diff line number Diff line change @@ -426,19 +426,13 @@ rdoc-coverage: PHONY main
426
426
427
427
RDOCBENCHOUT =/tmp/rdocbench
428
428
429
- gcbench-rdoc : PHONY
430
- @echo Benchmark with Generating RDoc documentation
431
- $(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) "
432
-
433
- gcbench-hash1 : PHONY
434
- @echo " Benchmark with hashbench1 (many temporal objects / obj count intensive)"
435
- $(Q ) $(XRUBY ) " $( srcdir) /tool/gcbench.rb" " $( srcdir) /tool/hashbench1.rb"
429
+ GCBENCH_ITEM =null
436
430
437
- gcbench-hash2 : PHONY
438
- @echo " Benchmark with hashbench2 (increasing hash size / malloc intensive)"
439
- $(Q ) $(XRUBY ) " $( srcdir) /tool/gcbench.rb" " $( srcdir) /tool/hashbench2.rb"
431
+ gcbench : PHONY
432
+ $(Q ) $(XRUBY ) " $( srcdir) /benchmark/gc/gcbench.rb" $(GCBENCH_ITEM )
440
433
441
- gcbench-hash : PHONY gcbench-hash1 gcbench-hash2
434
+ gcbench-rdoc : PHONY
435
+ $(Q ) $(XRUBY ) " $( srcdir) /benchmark/gc/gcbench.rb" rdoc
442
436
443
437
nodoc : PHONY
444
438
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments