sweet: add typescript-go to go-build benchmark
Building this repository revealed some inefficiencies in the compiler.
This change adds the main command from this repository (tsgo) as a
benchmark of `go build -a` (a cold build) so we can track improvements
and hopefully catch any future regressions.
For golang/go#72815.
Change-Id: I8e01850b7956970000211cce50f200c3e38e54af
Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/657077
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/sweet/harnesses/go-build.go b/sweet/harnesses/go-build.go
index 4648a50..cf278d5 100644
--- a/sweet/harnesses/go-build.go
+++ b/sweet/harnesses/go-build.go
@@ -56,6 +56,21 @@
)
},
},
+ {
+ // Added for #72815. This codebase has at least a few packages
+ // that are difficult for the Go compiler to handle, performance-wise,
+ // as of Mar. 13 2025.
+ name: "tsgo",
+ pkg: "cmd/tsgo",
+ clone: func(outDir string) error {
+ return gitCloneToCommit(
+ outDir,
+ "https://github.com/microsoft/typescript-go",
+ "main",
+ "1fffa1c05909adddbf2db7e14afeb8f63ed1e12c",
+ )
+ },
+ },
}
// For short mode, only build pkgsite. It's the smallest of
// the set, and it's hosted on go.googlesource.com, so fetching