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
4907a647
Commit
4907a647
authored
3 years ago
by
Lorenz Boguhn
Browse files
Options
Downloads
Patches
Plain Diff
Add saving of benchmark configurations
parent
504ca268
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!159
Re-implementation of Theodolite with Kotlin/Quarkus
,
!157
Update Graal Image in CI pipeline
,
!111
Add prefix to output files to link results and experiment
,
!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/execution/TheodoliteExecutor.kt
+14
-1
14 additions, 1 deletion
...rc/main/kotlin/theodolite/execution/TheodoliteExecutor.kt
with
14 additions
and
1 deletion
theodolite-quarkus/src/main/kotlin/theodolite/execution/TheodoliteExecutor.kt
+
14
−
1
View file @
4907a647
package
theodolite.execution
import
com.google.gson.GsonBuilder
import
theodolite.benchmark.BenchmarkExecution
import
theodolite.benchmark.KubernetesBenchmark
import
theodolite.patcher.PatcherDefinitionFactory
...
...
@@ -9,6 +10,7 @@ import theodolite.util.Config
import
theodolite.util.LoadDimension
import
theodolite.util.Resource
import
theodolite.util.Results
import
java.io.PrintWriter
import
java.time.Duration
class
TheodoliteExecutor
(
...
...
@@ -59,11 +61,22 @@ class TheodoliteExecutor(
}
fun
run
()
{
saveConfiguration
()
val
config
=
buildConfig
()
// execute benchmarks for each load
for
(
load
in
config
.
loads
)
{
config
.
compositeStrategy
.
findSuitableResource
(
load
,
config
.
resources
)
}
}
fun
saveConfiguration
()
{
val
gson
=
GsonBuilder
().
setPrettyPrinting
().
create
()
PrintWriter
(
"${this.config.prefix}-execution-configuration"
).
use
{
pw
->
pw
.
println
(
gson
.
toJson
(
this
.
config
))
}
PrintWriter
(
"${this.config.prefix}-benchmark-configuration"
).
use
{
pw
->
pw
.
println
(
gson
.
toJson
(
kubernetesBenchmark
))
}
}
}
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