Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
34bde357
Commit
34bde357
authored
4 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Add FullSearch strategy
parent
c8888400
No related branches found
No related tags found
3 merge requests
!159
Re-implementation of Theodolite with Kotlin/Quarkus
,
!157
Update Graal Image in CI pipeline
,
!83
WIP: Re-implementation of Theodolite with Kotlin/Quarkus
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite-quarkus/src/main/kotlin/theodolite/strategies/searchstrategy/FullSearch.kt
+25
-0
25 additions, 0 deletions
...kotlin/theodolite/strategies/searchstrategy/FullSearch.kt
with
25 additions
and
0 deletions
theodolite-quarkus/src/main/kotlin/theodolite/strategies/searchstrategy/FullSearch.kt
0 → 100644
+
25
−
0
View file @
34bde357
package
theodolite.strategies.searchstrategy
import
mu.KotlinLogging
import
theodolite.execution.BenchmarkExecutor
import
theodolite.util.LoadDimension
import
theodolite.util.Resource
private
val
logger
=
KotlinLogging
.
logger
{}
/**
* Linear-search-like implementation for determining the smallest suitable number of instances.
*
* @param benchmarkExecutor Benchmark executor which runs the individual benchmarks.
*/
class
LinearSearch
(
benchmarkExecutor
:
BenchmarkExecutor
)
:
SearchStrategy
(
benchmarkExecutor
)
{
override
fun
findSuitableResource
(
load
:
LoadDimension
,
resources
:
List
<
Resource
>):
Resource
?
{
for
(
res
in
resources
)
{
logger
.
info
{
"Running experiment with load '$load' and resources '$res'"
}
if
(
this
.
benchmarkExecutor
.
runExperiment
(
load
,
res
))
return
res
}
return
null
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment