Skip to content

Commit

Permalink
trying to fix result table
Browse files Browse the repository at this point in the history
  • Loading branch information
tvercaut committed Mar 5, 2024
1 parent c2b34a0 commit 323811e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 78 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Benchmark results Results for Encoding

[The latest results are here](https://rawcdn.githack.com/tvercaut/base64/master/result/result.html)
[The latest results are here](https://raw.githack.com/tvercaut/base64-benchmark/master/result/result.html)

# base64

Expand Down
94 changes: 17 additions & 77 deletions result/result.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@
</head>

<body>
<script src="result/encode-msvc19.js"></script>
<script src="result/decode-msvc19.js"></script>
<script src="result/encode-clang12.js"></script>
<script src="result/decode-clang12.js"></script>
<script src="result/encode-clang15.js"></script>
<script src="result/decode-clang15.js"></script>
<script type="text/babel">
//-----------------------------------------------------------------------------
function mergResult(encode, decode) {
Expand Down Expand Up @@ -194,40 +192,28 @@
}
//-----------------------------------------------------------------------------
window.onload = function () {
// Clang12
generateResultTable("table_encode_result_clang12", encode_result_clang12);
generateBarCharts("canvas_encode_result_clang12", encode_result_clang12, "Encode Results (Lower is better)");
// Clang15
generateResultTable("table_encode_result_clang15", encode_result_clang15);
generateBarCharts("canvas_encode_result_clang15", encode_result_clang15, "Encode Results (Lower is better)");

generateResultTable("table_decode_result_clang12", decode_result_clang12);
generateBarCharts("canvas_decode_result_clang12", decode_result_clang12, "Decode Results (Lower is better)");

let mergResultVal_clang12 = mergResult(encode_result_clang12, decode_result_clang12);
generateResultTable("table_decode_encode_result_clang12", mergResultVal_clang12);
generateBarCharts("canvas_decode_encode_result_clang12", mergResultVal_clang12, "Decode + Encode Results (Lower is better)");

// MSVC 2019
generateResultTable("table_encode_result_msvc19", encode_result_msvc19);
generateBarCharts("canvas_encode_result_msvc19", encode_result_msvc19, "Encode Results (Lower is better)");

generateResultTable("table_decode_result_msvc19", decode_result_msvc19);
generateBarCharts("canvas_decode_result_msvc19", decode_result_msvc19, "Decode Results (Lower is better)");

let mergResultVal_msvc19 = mergResult(encode_result_msvc19, decode_result_msvc19);
generateResultTable("table_decode_encode_result_msvc19", mergResultVal_msvc19);
generateBarCharts("canvas_decode_encode_result_msvc19", mergResultVal_msvc19, "Decode + Encode Results (Lower is better)");
generateResultTable("table_decode_result_clang15", decode_result_clang15);
generateBarCharts("canvas_decode_result_clang15", decode_result_clang15, "Decode Results (Lower is better)");

let mergResultVal_clang15 = mergResult(encode_result_clang15, decode_result_clang15);
generateResultTable("table_decode_encode_result_clang15", mergResultVal_clang15);
generateBarCharts("canvas_decode_encode_result_clang15", mergResultVal_clang15, "Decode + Encode Results (Lower is better)");
};
</script>
<!---Body start -->
<div class="container">
<div class="py-5 text-center">
<h1>
Benchmark results (Clang 12 / AMD5700G)
Benchmark results (Clang 15)
</h1>
</div>
<p>
<h2>Encode Results</h2>
<table class="table table-striped" id="table_encode_result_clang12">
<table class="table table-striped" id="table_encode_result_clang15">
<thead class="thead-dark">
<tr></tr>
</thead>
Expand All @@ -236,12 +222,12 @@ <h2>Encode Results</h2>
</p>

<p>
<canvas id="canvas_encode_result_clang12"></canvas>
<canvas id="canvas_encode_result_clang15"></canvas>
</p>

<p>
<h2>Decode Results</h2>
<table class="table table-striped" id="table_decode_result_clang12">
<table class="table table-striped" id="table_decode_result_clang15">
<thead class="thead-dark">
<tr></tr>
</thead>
Expand All @@ -250,31 +236,12 @@ <h2>Decode Results</h2>
</p>

<p>
<canvas id="canvas_decode_result_clang12"></canvas>
<canvas id="canvas_decode_result_clang15"></canvas>
</p>

<p>
<h2>Encode + Decode Results</h2>
<table class="table table-striped" id="table_decode_encode_result_clang12">
<thead class="thead-dark">
<tr></tr>
</thead>
<tbody></tbody>
</table>
</p>

<p>
<canvas id="canvas_decode_encode_result_clang12"></canvas>
</p>

<div class="py-5 text-center">
<h1>
Benchmark results (MSVC 2019/19.28.29335 x64 / Intel Xeon W-2133 @ 3.6GHz)
</h1>
</div>
<p>
<h2>Encode Results</h2>
<table class="table table-striped" id="table_encode_result_msvc19">
<table class="table table-striped" id="table_decode_encode_result_clang15">
<thead class="thead-dark">
<tr></tr>
</thead>
Expand All @@ -283,36 +250,9 @@ <h2>Encode Results</h2>
</p>

<p>
<canvas id="canvas_encode_result_msvc19"></canvas>
<canvas id="canvas_decode_encode_result_clang15"></canvas>
</p>

<p>
<h2>Decode Results</h2>
<table class="table table-striped" id="table_decode_result_msvc19">
<thead class="thead-dark">
<tr></tr>
</thead>
<tbody></tbody>
</table>
</p>

<p>
<canvas id="canvas_decode_result_msvc19"></canvas>
</p>

<p>
<h2>Encode + Decode Results</h2>
<table class="table table-striped" id="table_decode_encode_result_msvc19">
<thead class="thead-dark">
<tr></tr>
</thead>
<tbody></tbody>
</table>
</p>

<p>
<canvas id="canvas_decode_encode_result_msvc19"></canvas>
</p>
</div>
<!---Body end -->
</body>
Expand Down

0 comments on commit 323811e

Please sign in to comment.