Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kieker-TeeTime-Stages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
TeeTime
Kieker-TeeTime-Stages
Commits
653d88a6
Commit
653d88a6
authored
10 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
updated performance measurements
parent
7b6b71ee
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/performancetest/java/teetime/examples/traceReconstruction/ChwHomeTraceReconstructionAnalysisTest.java
+9
-6
9 additions, 6 deletions
...econstruction/ChwHomeTraceReconstructionAnalysisTest.java
src/test/resources/logback.groovy
+3
-3
3 additions, 3 deletions
src/test/resources/logback.groovy
with
12 additions
and
9 deletions
src/performancetest/java/teetime/examples/traceReconstruction/ChwHomeTraceReconstructionAnalysisTest.java
+
9
−
6
View file @
653d88a6
...
...
@@ -21,6 +21,7 @@ import static org.hamcrest.Matchers.is;
import
static
org
.
hamcrest
.
Matchers
.
lessThan
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertThat
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
java.io.File
;
import
java.util.Map
;
...
...
@@ -42,7 +43,7 @@ import kieker.analysis.plugin.filter.flow.TraceEventRecords;
*/
public
class
ChwHomeTraceReconstructionAnalysisTest
{
private
static
final
String
RESOURCE_DIR
=
"
targe
t/
t
es
t-class
es/"
;
private
static
final
String
RESOURCE_DIR
=
"
src/tes
t/
r
es
ourc
es/"
;
private
StopWatch
stopWatch
;
@Before
...
...
@@ -82,7 +83,7 @@ public class ChwHomeTraceReconstructionAnalysisTest {
TraceEventRecords
trace6886
=
analysis
.
getElementCollection
().
get
(
1
);
assertEquals
(
6886
,
trace6886
.
getTraceMetadata
().
getTraceId
());
assertThat
(
quintiles
.
get
(
0.5
),
is
(
both
(
greaterThan
(
34
l
)).
and
(
lessThan
(
320
l
))));
assertThat
(
quintiles
.
get
(
0.5
),
is
(
both
(
greaterThan
(
0
l
)).
and
(
lessThan
(
2
l
))));
}
@Test
...
...
@@ -111,7 +112,7 @@ public class ChwHomeTraceReconstructionAnalysisTest {
TraceEventRecords
trace1
=
analysis
.
getElementCollection
().
get
(
1
);
assertEquals
(
8974347286117089281
l
,
trace1
.
getTraceMetadata
().
getTraceId
());
assertThat
(
quintiles
.
get
(
0.5
),
is
(
both
(
greaterThan
(
1
7
00
l
)).
and
(
lessThan
(
19
00
l
))));
assertThat
(
quintiles
.
get
(
0.5
),
is
(
both
(
greaterThan
(
2
100
l
)).
and
(
lessThan
(
22
00
l
))));
}
@Test
...
...
@@ -128,8 +129,10 @@ public class ChwHomeTraceReconstructionAnalysisTest {
}
StatisticsUtil
.
removeLeadingZeroThroughputs
(
analysis
.
getThroughputs
());
Map
<
Double
,
Long
>
quintiles
=
StatisticsUtil
.
calculateQuintiles
(
analysis
.
getThroughputs
());
System
.
out
.
println
(
"Median throughput: "
+
quintiles
.
get
(
0.5
)
+
" elements/time unit"
);
assertTrue
(
analysis
.
getThroughputs
().
isEmpty
());
// Map<Double, Long> quintiles = StatisticsUtil.calculateQuintiles(analysis.getThroughputs());
// System.out.println("Median throughput: " + quintiles.get(0.5) + " elements/time unit");
assertEquals
(
17371
,
analysis
.
getNumRecords
());
assertEquals
(
22
,
analysis
.
getNumTraces
());
...
...
@@ -140,7 +143,7 @@ public class ChwHomeTraceReconstructionAnalysisTest {
TraceEventRecords
trace1
=
analysis
.
getElementCollection
().
get
(
1
);
assertEquals
(
1
,
trace1
.
getTraceMetadata
().
getTraceId
());
assertThat
(
quintiles
.
get
(
0.5
),
is
(
both
(
greaterThan
(
200
l
)).
and
(
lessThan
(
250
l
))));
//
assertThat(quintiles.get(0.5), is(both(greaterThan(200l)).and(lessThan(250l))));
}
}
This diff is collapsed.
Click to expand it.
src/test/resources/logback.groovy
+
3
−
3
View file @
653d88a6
...
...
@@ -21,8 +21,8 @@ appender("CONSOLE", ConsoleAppender) {
root
WARN
,
[
"CONSOLE"
]
logger
"teetime.framework"
,
INFO
logger
"teetime.framework.signal"
,
INFO
logger
"teetime.stage"
,
INFO
//
logger "teetime.framework", INFO
//
logger "teetime.framework.signal", INFO
//
logger "teetime.stage", INFO
logger
"util"
,
INFO
\ No newline at end of file
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