Skip to content

Commit e19ce67

Browse files
committed
add make benchmark
1 parent f37bf57 commit e19ce67

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ext/yarvaot/depend

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
# Urabe Shyouhei <shyouhei@ruby-lang.org> during 2010. See the COPYING for
33
# legal info.
44

5+
.PHONY: benchmark
6+
benchmark: $(topdir)/ruby
7+
ruby -e'puts "#!/bin/sh\necho ./a.out\n"' > ./a.out
8+
chmod 755 ./a.out
9+
ruby $(top_srcdir)/benchmark/driver.rb -v \
10+
--executables="yarvaot; ./a.out; ruby; $(topdir)/ruby" \
11+
--pattern='bm_' --directory=$(top_srcdir)/benchmark
12+
513
install: install-hdr
614
install-hdr: yarvaot.h $(ARCHHDRDIR)
715
@-$(COPY) $^

0 commit comments

Comments
 (0)