generated from adrienaury/go-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: use fast json marshaller (#37)
* perf: use fast json marshaller * chore: test golint with timeout 10m * feat: add new flags for output and profiling * test: output flag * feat: auto create folders for report * feat: auto create folders for report
- Loading branch information
1 parent
403508a
commit 505e0a4
Showing
9 changed files
with
174 additions
and
11 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
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
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,40 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>MIMO Report</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1" /> | ||
<meta name="description" content="MIMO Report" /> | ||
</head> | ||
<body> | ||
<h1>MIMO Report</h1> | ||
<table border="1" cellspacing="0" cellpadding="5"> | ||
<thead> | ||
<th>Field</th> | ||
<th>Nil</th> | ||
<th>Ignored</th> | ||
<th>Masked</th> | ||
<th>Missed</th> | ||
<th>Masking Rate</th> | ||
<th>Coherent Rate</th> | ||
<th>Identifiable Rate</th> | ||
<th>K</th> | ||
</thead> | ||
<tbody> | ||
|
||
<tr> | ||
<td>value</td> | ||
<td>0</td> | ||
<td>0</td> | ||
<td>2</td> | ||
<td>0</td> | ||
<td style="background-color: lightgreen">100.00 %</td> | ||
<td style="background-color: orange">0.00 %</td> | ||
<td style="background-color: lightgreen">100.00 %</td> | ||
<td style="background-color: orange">1</td> | ||
</tr> | ||
|
||
</tbody> | ||
</table> | ||
</body> | ||
</html> |
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,40 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>MIMO Report</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1" /> | ||
<meta name="description" content="MIMO Report" /> | ||
</head> | ||
<body> | ||
<h1>MIMO Report</h1> | ||
<table border="1" cellspacing="0" cellpadding="5"> | ||
<thead> | ||
<th>Field</th> | ||
<th>Nil</th> | ||
<th>Ignored</th> | ||
<th>Masked</th> | ||
<th>Missed</th> | ||
<th>Masking Rate</th> | ||
<th>Coherent Rate</th> | ||
<th>Identifiable Rate</th> | ||
<th>K</th> | ||
</thead> | ||
<tbody> | ||
|
||
<tr> | ||
<td>value</td> | ||
<td>0</td> | ||
<td>0</td> | ||
<td>2</td> | ||
<td>0</td> | ||
<td style="background-color: lightgreen">100.00 %</td> | ||
<td style="background-color: orange">0.00 %</td> | ||
<td style="background-color: lightgreen">100.00 %</td> | ||
<td style="background-color: orange">1</td> | ||
</tr> | ||
|
||
</tbody> | ||
</table> | ||
</body> | ||
</html> |
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,23 @@ | ||
name: validate metrics | ||
testcases: | ||
- name: full name report | ||
steps: | ||
- script: echo '{"value":"A"}' > working/real.jsonl | ||
- script: echo '{"value":"A"}' >> working/real.jsonl | ||
|
||
- script: echo '{"value":"X"}' > working/masked.jsonl | ||
- script: echo '{"value":"Y"}' >> working/masked.jsonl | ||
|
||
- script: cat working/masked.jsonl | mimo --output ../reports/report_output_full.html -v3 working/real.jsonl | ||
- script: test -f ../reports/report_output_full.html | ||
|
||
- name: only directory report | ||
steps: | ||
- script: echo '{"value":"A"}' > working/real.jsonl | ||
- script: echo '{"value":"A"}' >> working/real.jsonl | ||
|
||
- script: echo '{"value":"X"}' > working/masked.jsonl | ||
- script: echo '{"value":"Y"}' >> working/masked.jsonl | ||
|
||
- script: cat working/masked.jsonl | mimo --output ../reports/ -v3 working/real.jsonl | ||
- script: test -f ../reports/report.html |