Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Opening this up as a draft for now for discussion. This PR brings `wazero` up to the latest version, which introduces their new optimizing compiler. I've added benchmarks from the current version we use `v1.3.0`, and the latest `v1.7.3`: `v1.3.0`: ``` goos: linux goarch: amd64 pkg: github.com/extism/go-sdk cpu: 12th Gen Intel(R) Core(TM) i7-1255U BenchmarkInitialize/noop-12 314 3610336 ns/op 2850623 B/op 2744 allocs/op BenchmarkInitializeWithCache/noop-12 2060 549867 ns/op 1630131 B/op 1554 allocs/op BenchmarkNoop/noop-12 245217 4664 ns/op 26216 B/op 22 allocs/op BenchmarkReplace/8192-12 5328 249861 ns/op 32.79 MB/s 34408 B/op 23 allocs/op BenchmarkReplace/16383-12 2366 495646 ns/op 33.06 MB/s 42600 B/op 23 allocs/op BenchmarkReplace/32768-12 1046 1110322 ns/op 29.51 MB/s 58985 B/op 23 allocs/op BenchmarkReplace/empty-12 222662 4755 ns/op 26216 B/op 22 allocs/op BenchmarkReplace/2048-12 17350 66603 ns/op 30.75 MB/s 28264 B/op 23 allocs/op BenchmarkReplace/4096-12 9249 122996 ns/op 33.30 MB/s 30312 B/op 23 allocs/op ``` `v1.7.3`: ``` goos: linux goarch: amd64 pkg: github.com/extism/go-sdk cpu: 12th Gen Intel(R) Core(TM) i7-1255U BenchmarkInitialize/noop-14 158 7486412 ns/op 5319317 B/op 6911 allocs/op BenchmarkInitializeWithCache/noop-14 2560 473021 ns/op 1851399 B/op 1806 allocs/op BenchmarkNoop/noop-14 141536 7226 ns/op 70139 B/op 23 allocs/op BenchmarkReplace/16383-14 4167 283178 ns/op 57.86 MB/s 86535 B/op 24 allocs/op BenchmarkReplace/32768-14 1978 604613 ns/op 54.20 MB/s 102923 B/op 24 allocs/op BenchmarkReplace/empty-14 161700 6700 ns/op 70134 B/op 23 allocs/op BenchmarkReplace/2048-14 28716 41730 ns/op 49.08 MB/s 72199 B/op 24 allocs/op BenchmarkReplace/4096-14 16026 74786 ns/op 54.77 MB/s 74245 B/op 24 allocs/op BenchmarkReplace/8192-14 7995 144315 ns/op 56.76 MB/s 78339 B/op 24 allocs/op ``` --------- Co-authored-by: zach <[email protected]>
- Loading branch information