miller/scripts/time-big-file
John Kerl e10fee0724
Improve type-inference performance (#809)
* To-do items for broader platform/go-version benchmarking

* neaten inferrer API

* extend type-inference unit-test cases

* Add benchmark scripts for comparing compiler versions

* mlr version in addition to mlr --version

* some go-benchmark files for Mac/Linux perf comparisons

* neaten perf-scripts

* merge

* type-scan optimization tests

* type-scan optimization infra

* test new inferrer

* mlr --time option

* include --cpuprofile and --traceprofile in on-line help

* sharpen inferred/deferred-type API distinction

* replace old inferrer with newer/faster

* update docs for new type-inferrer
2021-12-27 00:54:21 -05:00

18 lines
262 B
Bash
Executable file

#!/bin/bash
mlr="mlr -S"
suffix="dkvp"
iflag=""
if [ $# -ge 1 ]; then
iflag="--$1"
if [ "$iflag" = "--csvlite" ]; then
suffix="csv"
else
suffix=$1
fi
fi
if [ $# -eq 2 ]; then
mlr="$2"
fi
justtime $mlr $iflag cat ~/tmp/big.$suffix > /dev/null