ruby-changes:57826
From: Nobuyoshi <ko1@a...>
Date: Fri, 20 Sep 2019 09:32:55 +0900 (JST)
Subject: [ruby-changes:57826] 45bac62845 (master): Added the target to run a benchmark
https://git.ruby-lang.org/ruby.git/commit/?id=45bac62845 From 45bac6284595834b68a34f4f4efe5880436fce11 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 20 Sep 2019 09:31:55 +0900 Subject: Added the target to run a benchmark diff --git a/defs/gmake.mk b/defs/gmake.mk index fec314f..120fba1 100644 --- a/defs/gmake.mk +++ b/defs/gmake.mk @@ -303,6 +303,12 @@ spec/bundler/%: PHONY https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L303 spec/%: programs exts PHONY +$(RUNRUBY) -r./$(arch)-fake $(srcdir)/spec/mspec/bin/mspec-run -B $(srcdir)/spec/default.mspec $(SPECOPTS) $(patsubst %,$(srcdir)/%,$@) +benchmark/%: miniruby$(EXEEXT) update-benchmark-driver PHONY + $(Q)$(BASERUBY) -rrubygems -I$(srcdir)/benchmark/lib $(srcdir)/benchmark/benchmark-driver/exe/benchmark-driver \ + --executables="compare-ruby::$(COMPARE_RUBY) -I$(EXTOUT)/common --disable-gem" \ + --executables="built-ruby::$(BENCH_RUBY) --disable-gem" \ + $(srcdir)/$@ $(OPTS) + clean-srcs-ext:: $(Q)$(RM) $(patsubst $(srcdir)/%,%,$(EXT_SRCS)) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/