forked from benchmark-action/github-action-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ NEW: Add
render-json-path
option (#4)
A JSON file, with configuration for how test suites and groups are rendered. Also, improve chart formatting.
- Loading branch information
1 parent
4c9086f
commit 5cce115
Showing
17 changed files
with
401 additions
and
201 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"suites": { | ||
"Python Benchmark with pytest-benchmark": { | ||
"header": "Test Suite Title", | ||
"description": "Description of test suite." | ||
} | ||
}, | ||
"groups": { | ||
"group 1": { | ||
"header": "Group 1 Title", | ||
"description": "Description of group 1.", | ||
"single_chart": true, | ||
"xAxis": "id" | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ | |
/coverage | ||
.vscode/ | ||
src/assets/data.js | ||
src/assets/config.js |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,113 @@ | ||
html { | ||
font-family: BlinkMacSystemFont,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
background-color: #fff; | ||
font-size: 16px; | ||
} | ||
body { | ||
color: #4a4a4a; | ||
margin: 8px; | ||
font-size: 1em; | ||
font-weight: 400; | ||
} | ||
header { | ||
margin-bottom: 8px; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
main { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
a { | ||
color: #3273dc; | ||
cursor: pointer; | ||
text-decoration: none; | ||
} | ||
a:hover { | ||
color: #000; | ||
} | ||
button { | ||
color: #fff; | ||
background-color: #3298dc; | ||
border-color: transparent; | ||
cursor: pointer; | ||
text-align: center; | ||
} | ||
button:hover { | ||
background-color: #2793da; | ||
flex: none; | ||
} | ||
.spacer { | ||
flex: auto; | ||
} | ||
.small { | ||
font-size: 0.75rem; | ||
} | ||
footer { | ||
margin-top: 16px; | ||
display: flex; | ||
align-items: center; | ||
} | ||
.header-label { | ||
margin-right: 4px; | ||
} | ||
.benchmark-set { | ||
margin: 8px 0; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.benchmark-title { | ||
font-size: 3rem; | ||
font-weight: 600; | ||
word-break: break-word; | ||
text-align: center; | ||
} | ||
.benchmark-group { | ||
font-size: 2rem; | ||
font-weight: 400; | ||
word-break: break-word; | ||
text-align: center; | ||
} | ||
.benchmark-graphs { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-around; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
width: 100%; | ||
} | ||
.benchmark-chart { | ||
max-width: 1000px; | ||
} | ||
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
background-color: #fff; | ||
font-size: 16px; | ||
} | ||
|
||
body { | ||
color: #4a4a4a; | ||
margin: 8px; | ||
font-size: 1em; | ||
font-weight: 400; | ||
} | ||
|
||
header { | ||
margin-bottom: 8px; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
main { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
a { | ||
color: #3273dc; | ||
cursor: pointer; | ||
text-decoration: none; | ||
} | ||
|
||
a:hover { | ||
color: #000; | ||
} | ||
|
||
button { | ||
color: #fff; | ||
background-color: #3298dc; | ||
border-color: transparent; | ||
cursor: pointer; | ||
text-align: center; | ||
} | ||
|
||
button:hover { | ||
background-color: #2793da; | ||
flex: none; | ||
} | ||
|
||
.spacer { | ||
flex: auto; | ||
} | ||
|
||
.small { | ||
font-size: 0.75rem; | ||
} | ||
|
||
footer { | ||
margin-top: 16px; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.header-label { | ||
margin-right: 4px; | ||
} | ||
|
||
.benchmark-set { | ||
margin: 8px 0; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.benchmark-title { | ||
font-size: 3rem; | ||
font-weight: 600; | ||
word-break: break-word; | ||
text-align: center; | ||
} | ||
|
||
.benchmark-description { | ||
font-size: 1rem; | ||
text-align: center; | ||
} | ||
|
||
.benchmark-group-title { | ||
font-size: 2rem; | ||
font-weight: 400; | ||
word-break: break-word; | ||
text-align: left; | ||
margin-left: 2%; | ||
} | ||
|
||
.benchmark-group-description { | ||
font-size: 1rem; | ||
text-align: left; | ||
margin-left: 2%; | ||
margin-bottom: 2rem; | ||
} | ||
|
||
.benchmark-graphs { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-around; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
width: 100%; | ||
} | ||
|
||
.benchmark-chart { | ||
max-width: 1000px; | ||
} |
Oops, something went wrong.