Closed colin1989 closed 1 year ago
未修改前:
goos: windows goarch: amd64 pkg: github.com/gookit/event cpu: Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz BenchmarkManager_Fire_no_listener BenchmarkManager_Fire_no_listener-12 3589737 334.2 ns/ op 72 B/op 2 allocs/op BenchmarkManager_Fire_normal BenchmarkManager_Fire_normal-12 3587448 335.9 ns/ op 72 B/op 2 allocs/op BenchmarkManager_Fire_wildcard BenchmarkManager_Fire_wildcard-12 2982114 379.5 ns/ op 72 B/op 2 allocs/op PASS
修改后:
goos: windows goarch: amd64 pkg: github.com/gookit/event cpu: Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz BenchmarkManager_Fire_no_listener BenchmarkManager_Fire_no_listener-12 4655372 256.5 ns/ op 48 B/op 1 allocs/op BenchmarkManager_Fire_normal BenchmarkManager_Fire_normal-12 4646497 256.8 ns/ op 48 B/op 1 allocs/op BenchmarkManager_Fire_wildcard BenchmarkManager_Fire_wildcard-12 3997699 294.7 ns/ op 48 B/op 1 allocs/op PASS
未修改前:
修改后: