Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Poulpe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
octobus
Poulpe
Merge requests
!7
Address listed issues with web UI
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Address listed issues with web UI
topic/default/graphs
into
branch/default
Overview
0
Commits
6
Pipelines
1
Changes
6
Merged
Raphaël Gomès
requested to merge
topic/default/graphs
into
branch/default
2 years ago
Overview
0
Commits
6
Pipelines
1
Changes
6
Expand
Closes
#5 (closed)
,
#6 (closed)
,
#7 (closed)
,
#8 (closed)
,
#9 (closed)
0
0
Merge request reports
Compare
branch/default
branch/default (base)
and
latest version
latest version
84816eeb
6 commits,
2 years ago
6 files
+
91
−
42
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
web-ui/src/lib/Benchmark.svelte
+
12
−
3
Options
<script
lang=
"ts"
>
import
Graph
from
"
./Graph.svelte
"
;
import
{
sortByFirst
}
from
"
../utils
"
;
@@ -3,4 +4,5 @@
export
let
name
;
export
let
results
;
/**
@@ -8,7 +10,8 @@
*/
const
groupResults
=
(
results
)
=>
{
return
results
.
reduce
((
acc
,
result
)
=>
{
const
key
=
result
[
"
data-env-vars
"
][
"
name
"
].
split
(
"
-
"
,
1
)[
0
];
const
repoName
=
result
[
"
data-env-vars
"
][
"
name
"
].
split
(
"
-
"
,
1
)[
0
];
const
key
=
repoName
;
if
(
!
acc
.
hasOwnProperty
(
key
))
{
acc
[
key
]
=
[];
}
@@ -18,5 +21,6 @@
};
</script>
<div
class=
"benchmark"
>
<div
id=
"
{
name
}
"
class=
"benchmark"
>
<h2>
{
name
}
</h2>
<div
class=
"graphs"
>
@@ -22,8 +26,8 @@
<div
class=
"graphs"
>
{
#each
Object
.
entries
(
groupResults
(
results
))
as
[
repoName
,
data
]
}
{
#each
Object
.
entries
(
groupResults
(
results
))
.
sort
(
sortByFirst
)
as
[
repoName
,
data
]
}
<Graph
title=
{
repoName
}
{
data
}
/>
{
/each
}
</div>
</div>
<style>
@@ -24,9 +28,14 @@
<Graph
title=
{
repoName
}
{
data
}
/>
{
/each
}
</div>
</div>
<style>
h2
{
position
:
sticky
;
top
:
0
;
background-color
:
white
;
}
.graphs
{
display
:
grid
;
gap
:
1.5rem
;
Loading