-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(envoy): refactoring and optimising the components that build…
… envoy config (#6119) * adding a proper test * move some stuff around and delete unused methods * linting * cleaning up the test * some renaming and test updates * merging v2 * fix rename * fixing test * add mirror to route configs * reverting some test data * fixing a bug * changing structure for clarity * fix model name * some more optimisations * cleaning up * linting * fix logger * PR review changes
- Loading branch information
Showing
10 changed files
with
759 additions
and
758 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
scheduler/pkg/envoy/processor/benchmark_results/batch_PR#6119_pre_refactor.txt
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,49 @@ | ||
oos: linux | ||
goarch: amd64 | ||
pkg: github.com/seldonio/seldon-core/scheduler/v2/pkg/envoy/processor | ||
cpu: 12th Gen Intel(R) Core(TM) i7-12800H | ||
BenchmarkModelUpdate_Models_10_Replicas_1_Batch_10ms-20 261 4293734 ns/op 1728869 B/op 20354 allocs/op | ||
BenchmarkModelUpdate_Models_100_Replicas_1_Batch_10ms-20 57 19236652 ns/op 11745105 B/op 148552 allocs/op | ||
BenchmarkModelUpdate_Models_1_000_Replicas_1_Batch_10ms-20 15 165481121 ns/op 306686874 B/op 4121256 allocs/op | ||
BenchmarkModelUpdate_Models_10_000_Replicas_1_Batch_10ms-20 1 1449165416 ns/op 4010677584 B/op 54872332 allocs/op | ||
BenchmarkModelUpdate_Models_10_Replicas_10_Batch_10ms-20 100 17107753 ns/op 21719815 B/op 273169 allocs/op | ||
BenchmarkModelUpdate_Models_100_Replicas_10_Batch_10ms-20 27 66313339 ns/op 118376950 B/op 1388585 allocs/op | ||
BenchmarkModelUpdate_Models_1_000_Replicas_10_Batch_10ms-20 3 519671198 ns/op 967958834 B/op 11993174 allocs/op | ||
BenchmarkModelUpdate_Models_10_000_Replicas_10_Batch_10ms-20 1 4341797404 ns/op 13883915576 B/op 181619840 allocs/op | ||
BenchmarkModelUpdate_Models_10_Replicas_1_Batch_100ms-20 6369 162639 ns/op 681659 B/op 6429 allocs/op | ||
BenchmarkModelUpdate_Models_100_Replicas_1_Batch_100ms-20 10 102798616 ns/op 264589261 B/op 3582995 allocs/op | ||
BenchmarkModelUpdate_Models_1_000_Replicas_1_Batch_100ms-20 9 117708448 ns/op 348929572 B/op 4632386 allocs/op | ||
BenchmarkModelUpdate_Models_10_000_Replicas_1_Batch_100ms-20 2 683663227 ns/op 2238235876 B/op 29665474 allocs/op | ||
BenchmarkModelUpdate_Models_10_Replicas_10_Batch_100ms-20 12 87394856 ns/op 297229676 B/op 4071575 allocs/op | ||
BenchmarkModelUpdate_Models_100_Replicas_10_Batch_100ms-20 9 114736702 ns/op 374778539 B/op 4887162 allocs/op | ||
BenchmarkModelUpdate_Models_1_000_Replicas_10_Batch_100ms-20 6 340307094 ns/op 1366063312 B/op 16472416 allocs/op | ||
BenchmarkModelUpdate_Models_10_000_Replicas_10_Batch_100ms-20 1 2402863570 ns/op 7096934200 B/op 93288518 allocs/op | ||
PASS | ||
ok github.com/seldonio/seldon-core/scheduler/v2/pkg/envoy/processor 45.753s | ||
|
||
|
||
After | ||
|
||
|
||
goos: linux | ||
goarch: amd64 | ||
pkg: github.com/seldonio/seldon-core/scheduler/v2/pkg/envoy/processor | ||
cpu: 12th Gen Intel(R) Core(TM) i7-12800H | ||
BenchmarkModelUpdate_Models_10_Replicas_1_Batch_10ms-20 99 10503076 ns/op 5459504 B/op 75936 allocs/op | ||
BenchmarkModelUpdate_Models_100_Replicas_1_Batch_10ms-20 100 12329506 ns/op 11528623 B/op 147768 allocs/op | ||
BenchmarkModelUpdate_Models_1_000_Replicas_1_Batch_10ms-20 32 57135215 ns/op 200141562 B/op 2638843 allocs/op | ||
BenchmarkModelUpdate_Models_10_000_Replicas_1_Batch_10ms-20 3 425881058 ns/op 1155633304 B/op 15271185 allocs/op | ||
BenchmarkModelUpdate_Models_10_Replicas_10_Batch_10ms-20 97 12796395 ns/op 49125454 B/op 644298 allocs/op | ||
BenchmarkModelUpdate_Models_100_Replicas_10_Batch_10ms-20 34 33008128 ns/op 173017588 B/op 2127563 allocs/op | ||
BenchmarkModelUpdate_Models_1_000_Replicas_10_Batch_10ms-20 4 324180730 ns/op 1990164076 B/op 25634294 allocs/op | ||
BenchmarkModelUpdate_Models_10_000_Replicas_10_Batch_10ms-20 1 2786099232 ns/op 16107104968 B/op 215067138 allocs/op | ||
BenchmarkModelUpdate_Models_10_Replicas_1_Batch_100ms-20 5761 230485 ns/op 1276192 B/op 14658 allocs/op | ||
BenchmarkModelUpdate_Models_100_Replicas_1_Batch_100ms-20 12 95563752 ns/op 368770140 B/op 5040953 allocs/op | ||
BenchmarkModelUpdate_Models_1_000_Replicas_1_Batch_100ms-20 9 118337597 ns/op 345704658 B/op 4589376 allocs/op | ||
BenchmarkModelUpdate_Models_10_000_Replicas_1_Batch_100ms-20 3 531757210 ns/op 2030309925 B/op 26656810 allocs/op | ||
BenchmarkModelUpdate_Models_10_Replicas_10_Batch_100ms-20 18 103613236 ns/op 149228799 B/op 1985478 allocs/op | ||
BenchmarkModelUpdate_Models_100_Replicas_10_Batch_100ms-20 9 113923163 ns/op 225481680 B/op 2822586 allocs/op | ||
BenchmarkModelUpdate_Models_1_000_Replicas_10_Batch_100ms-20 6 272610358 ns/op 945017966 B/op 10781455 allocs/op | ||
BenchmarkModelUpdate_Models_10_000_Replicas_10_Batch_100ms-20 1 1734657705 ns/op 3920402984 B/op 49687374 allocs/op | ||
PASS | ||
ok github.com/seldonio/seldon-core/scheduler/v2/pkg/envoy/processor 37.457s |
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
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
Oops, something went wrong.