github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/integration_test/stdlibs/README.md (about) 1 # Stdlibs benchmarks 2 3 This directory contains a Makefile to build (a subset of) the stdlibs for Zig, TinyGo and Go (wasip1) 4 and test them against the compiler. 5 6 ## Requirements 7 8 - Zig 0.11.0 in PATH, source code to zig 0.11.0 9 - TinyGo in PATH 10 - Go in PATH 11 12 ## Usage 13 14 First, build the test suite (the Zig source root has to be set explicitly): 15 16 make all zigroot=/path/to/zig/source 17 18 Then you can run the test suite against the compiler; e.g.: 19 20 go test -bench=. 21 22 ## Caveats 23 24 * The standard binary zig distribution does not ship some testdata. 25 You should override with the zig source code path, otherwise some tests will fail. 26 27 * Some tests might fail if Go has been installed with homebrew because 28 the file system layout is different than what the tests expect. 29 Easiest fix is to install Go without using brew. 30