Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bench ¶
func Bench() error
Bench runs benchmarks in the default configuration for a Go app, using wazero.
func BenchAll ¶
func BenchAll() error
BenchAll runs all benchmark types and outputs with benchstat. A C++ toolchain and libinjection must be installed to run.
func BenchCGO ¶
func BenchCGO() error
BenchCGO runs benchmarks with cgo instead of wasm. A C++ toolchain and the library must be installed to run.
func BenchDefault ¶
func BenchDefault() error
BenchDefault runs benchmarks using the reference library for comparison.
func SetLibraryName ¶
func SetLibraryName(name string)
SetLibraryName sets the library name of the importing project. It is used to determine things like build tags.
func SetLibraryRepo ¶
func SetLibraryRepo(repo string)
SetLibraryRepo sets the github repository of the upstream library being built.
func Test ¶
func Test() error
Test runs unit tests - by default, it uses wazero; set WASI_TEST_MODE=cgo or WASI_TEST_MODE=tinygo to use either
func UpdateUpstream ¶
func UpdateUpstream() error
UpdateUpstream sets the upstream version in buildtools/wasm/version.txt to the latest.
Types ¶
This section is empty.