miller/cmd/scan/main.go
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

19 lines
436 B
Go

// ================================================================
// Experiments for type-inference performance optimization
// ================================================================
package main
import (
"fmt"
"os"
"github.com/johnkerl/miller/internal/pkg/scan"
)
func main() {
for _, arg := range os.Args[1:] {
scanType := scan.FindScanType(arg)
fmt.Printf("%-10s -> %s\n", arg, scan.TypeNames[scanType])
}
}