time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

makefile (1506B)


      1 SHELL := /bin/bash ## <= required to use time
      2 MAKEFLAGS += --no-print-directory
      3 
      4 build-all:
      5 	cd C && make build
      6 	cd nim && make fast
      7 	cd ocaml && make fast
      8 	cd squiggle.c && make build
      9 
     10 time-all:
     11 	@echo "# bc" && cd bc && make time && echo && echo
     12 	@echo "# C" && cd C && make time-linux-fastest && echo && echo
     13 	@echo "# js (bun)" && cd js && time bun samples.js && echo && echo
     14 	@echo "# js (node)" && cd js && time node samples.js && echo && echo
     15 	@echo "# lua (luajit)" && cd lua && make time-linux && echo && echo
     16 	@echo "# nim" && cd nim && make time-linux && echo && echo
     17 	@echo "# ocaml" && cd ocaml && make time-linux && echo && echo
     18 	@echo "# Python (3.9)" && cd python && time python3.9 samples.py && echo && echo
     19 	@echo "# Python (numpy)" && cd python && time python3.9 samples-fast.py && echo && echo
     20 	@echo "# R (3.6.1)" && cd R && time r samples.R && echo && echo
     21 	@echo "# Squiggle (0.8.6)" && cd squiggle && make time-linux && echo && echo
     22 	@echo "# SquigglePy (0.27)" && cd squigglepy && make time && echo && echo
     23 	@echo "# squiggle.c" && cd squiggle.c && make install && make build && make time-linux && echo && echo
     24 	@echo "# squiggle.c" && cd squiggle.c && make install-custom && make build-experimental &&  make time-linux && echo && echo
     25 	@echo "# squiggle.c (danger mode)" && cd squiggle.c && make install-custom && make build-experimental && make time-linux && echo && echo
     26 	@echo "# squiggle.go" && cd go && make time-linux && echo && echo
     27 
     28 record:
     29 	make time-all > time.txt 2>&1