generated from OtusGolang/home_work
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
DimVlas
authored and
DimVlas
committed
Dec 25, 2024
1 parent
4454c88
commit a829e48
Showing
9 changed files
with
246 additions
and
37 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
goos: linux | ||
goarch: amd64 | ||
pkg: github.com/DimVlas/otus_hw/hw10_program_optimization | ||
cpu: AMD Ryzen 5 3500X 6-Core Processor | ||
BenchmarkGetDomainStat-6 6 180000872 ns/op 29449422 B/op 723161 allocs/op | ||
BenchmarkGetDomainStat-6 6 179475854 ns/op 29449080 B/op 723159 allocs/op | ||
BenchmarkGetDomainStat-6 6 179211242 ns/op 29449562 B/op 723161 allocs/op | ||
BenchmarkGetDomainStat-6 6 179568154 ns/op 29449693 B/op 723162 allocs/op | ||
BenchmarkGetDomainStat-6 6 183618851 ns/op 29449421 B/op 723160 allocs/op | ||
BenchmarkGetDomainStat-6 6 186144564 ns/op 29449717 B/op 723163 allocs/op | ||
BenchmarkGetDomainStat-6 6 179541616 ns/op 29449549 B/op 723161 allocs/op | ||
BenchmarkGetDomainStat-6 6 179762574 ns/op 29449098 B/op 723159 allocs/op | ||
BenchmarkGetDomainStat-6 6 179707295 ns/op 29449813 B/op 723162 allocs/op | ||
BenchmarkGetDomainStat-6 6 179366661 ns/op 29449816 B/op 723162 allocs/op | ||
PASS | ||
ok github.com/DimVlas/otus_hw/hw10_program_optimization 12.673s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
goos: linux | ||
goarch: amd64 | ||
pkg: github.com/DimVlas/otus_hw/hw10_program_optimization | ||
cpu: AMD Ryzen 5 3500X 6-Core Processor | ||
BenchmarkGetDomainStat-6 2 552224837 ns/op 316920320 B/op 2845406 allocs/op | ||
BenchmarkGetDomainStat-6 2 554340655 ns/op 316939656 B/op 2845410 allocs/op | ||
BenchmarkGetDomainStat-6 2 548643641 ns/op 316883512 B/op 2845403 allocs/op | ||
BenchmarkGetDomainStat-6 2 541981412 ns/op 316864984 B/op 2845401 allocs/op | ||
BenchmarkGetDomainStat-6 2 551823022 ns/op 316993964 B/op 2845409 allocs/op | ||
BenchmarkGetDomainStat-6 2 556719799 ns/op 316884424 B/op 2845408 allocs/op | ||
BenchmarkGetDomainStat-6 2 543636506 ns/op 316920640 B/op 2845407 allocs/op | ||
BenchmarkGetDomainStat-6 2 553364894 ns/op 316957360 B/op 2845408 allocs/op | ||
BenchmarkGetDomainStat-6 2 550641171 ns/op 316939488 B/op 2845408 allocs/op | ||
BenchmarkGetDomainStat-6 2 555527000 ns/op 316957552 B/op 2845409 allocs/op | ||
PASS | ||
ok github.com/DimVlas/otus_hw/hw10_program_optimization 16.542s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
goos: linux | ||
goarch: amd64 | ||
pkg: github.com/DimVlas/otus_hw/hw10_program_optimization | ||
cpu: AMD Ryzen 5 3500X 6-Core Processor | ||
│ bench_old.txt │ bench_new.txt │ | ||
│ sec/op │ sec/op vs base │ | ||
GetDomainStat-6 552.0m ± 2% 179.6m ± 2% -67.46% (p=0.000 n=10) | ||
|
||
│ bench_old.txt │ bench_new.txt │ | ||
│ B/op │ B/op vs base │ | ||
GetDomainStat-6 302.25Mi ± 0% 28.09Mi ± 0% -90.71% (p=0.000 n=10) | ||
|
||
│ bench_old.txt │ bench_new.txt │ | ||
│ allocs/op │ allocs/op vs base │ | ||
GetDomainStat-6 2845.4k ± 0% 723.2k ± 0% -74.58% (p=0.000 n=10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
module github.com/fixme_my_friend/hw10_program_optimization | ||
module github.com/DimVlas/otus_hw/hw10_program_optimization | ||
|
||
go 1.22 | ||
|
||
require github.com/stretchr/testify v1.7.0 | ||
require ( | ||
github.com/mailru/easyjson v0.9.0 | ||
github.com/stretchr/testify v1.7.0 | ||
) | ||
|
||
require ( | ||
github.com/aclements/go-moremath v0.0.0-20210112150236-f10218a38794 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
golang.org/x/perf v0.0.0-20241204221936-711ff2ab7231 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters