This commit is contained in:
nuttycom 2024-03-12 00:27:05 +00:00
parent 45d8497bfb
commit c1e45ce906
2 changed files with 0 additions and 649 deletions

View File

@ -1,368 +0,0 @@
window.BENCHMARK_DATA = {
"lastUpdate": 1709247283564,
"repoUrl": "https://github.com/zcash/orchard",
"entries": {
"Orchard Benchmarks": [
{
"commit": {
"author": {
"email": "jack@electriccoin.co",
"name": "str4d",
"username": "str4d"
},
"committer": {
"email": "noreply@github.com",
"name": "GitHub",
"username": "web-flow"
},
"distinct": true,
"id": "2a312c0cf161be7fe6d706de4463ce32f92de8bb",
"message": "Merge pull request #419 from nuttycom/nullifier_ct_eq\n\nAdditions needed for Orchard batch scanning",
"timestamp": "2024-02-29T22:24:02Z",
"tree_id": "76719346c51a3d992e37019351f2687319d3a172",
"url": "https://github.com/zcash/orchard/commit/2a312c0cf161be7fe6d706de4463ce32f92de8bb"
},
"date": 1709246419179,
"tool": "cargo",
"benches": [
{
"name": "proving/bundle/1",
"value": 2912718073,
"range": "± 18144682",
"unit": "ns/iter"
},
{
"name": "proving/bundle/2",
"value": 2890833296,
"range": "± 11307597",
"unit": "ns/iter"
},
{
"name": "proving/bundle/3",
"value": 4137357455,
"range": "± 22295821",
"unit": "ns/iter"
},
{
"name": "proving/bundle/4",
"value": 5420055263,
"range": "± 24823399",
"unit": "ns/iter"
},
{
"name": "verifying/bundle/1",
"value": 25070685,
"range": "± 412571",
"unit": "ns/iter"
},
{
"name": "verifying/bundle/2",
"value": 25064948,
"range": "± 395529",
"unit": "ns/iter"
},
{
"name": "verifying/bundle/3",
"value": 28228520,
"range": "± 561575",
"unit": "ns/iter"
},
{
"name": "verifying/bundle/4",
"value": 31787045,
"range": "± 314850",
"unit": "ns/iter"
},
{
"name": "note-decryption/valid",
"value": 1525135,
"range": "± 9616",
"unit": "ns/iter"
},
{
"name": "note-decryption/invalid",
"value": 128083,
"range": "± 296",
"unit": "ns/iter"
},
{
"name": "note-decryption/compact-valid",
"value": 1523744,
"range": "± 12335",
"unit": "ns/iter"
},
{
"name": "compact-note-decryption/invalid",
"value": 1350335546,
"range": "± 690023",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/valid/10",
"value": 16098548,
"range": "± 55529",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/invalid/10",
"value": 2163800,
"range": "± 6058",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-valid/10",
"value": 16088202,
"range": "± 54730",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-invalid/10",
"value": 2133319,
"range": "± 12433",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/valid/50",
"value": 80404415,
"range": "± 881874",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/invalid/50",
"value": 10752196,
"range": "± 36044",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-valid/50",
"value": 80366615,
"range": "± 253875",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-invalid/50",
"value": 10611977,
"range": "± 28604",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/valid/100",
"value": 160864435,
"range": "± 1302598",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/invalid/100",
"value": 21502896,
"range": "± 65771",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-valid/100",
"value": 160811566,
"range": "± 641865",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-invalid/100",
"value": 21200158,
"range": "± 80355",
"unit": "ns/iter"
},
{
"name": "derive_fvk",
"value": 465601,
"range": "± 1353",
"unit": "ns/iter"
},
{
"name": "default_address",
"value": 501134,
"range": "± 1710",
"unit": "ns/iter"
}
]
},
{
"commit": {
"author": {
"email": "jack@electriccoin.co",
"name": "str4d",
"username": "str4d"
},
"committer": {
"email": "noreply@github.com",
"name": "GitHub",
"username": "web-flow"
},
"distinct": true,
"id": "1db974141bdd2dd921a515b1c66df7a7fad91761",
"message": "Merge pull request #420 from zcash/release-0.7.1\n\nRelease 0.7.1",
"timestamp": "2024-02-29T22:38:17Z",
"tree_id": "b541bff350254111bd67f50dfc57a747402bcd89",
"url": "https://github.com/zcash/orchard/commit/1db974141bdd2dd921a515b1c66df7a7fad91761"
},
"date": 1709247282556,
"tool": "cargo",
"benches": [
{
"name": "proving/bundle/1",
"value": 3095173418,
"range": "± 154502704",
"unit": "ns/iter"
},
{
"name": "proving/bundle/2",
"value": 3093001434,
"range": "± 37552182",
"unit": "ns/iter"
},
{
"name": "proving/bundle/3",
"value": 4401230379,
"range": "± 19467536",
"unit": "ns/iter"
},
{
"name": "proving/bundle/4",
"value": 5697329977,
"range": "± 40142949",
"unit": "ns/iter"
},
{
"name": "verifying/bundle/1",
"value": 27546419,
"range": "± 2192851",
"unit": "ns/iter"
},
{
"name": "verifying/bundle/2",
"value": 25473258,
"range": "± 1062186",
"unit": "ns/iter"
},
{
"name": "verifying/bundle/3",
"value": 28544281,
"range": "± 932869",
"unit": "ns/iter"
},
{
"name": "verifying/bundle/4",
"value": 31580663,
"range": "± 434553",
"unit": "ns/iter"
},
{
"name": "note-decryption/valid",
"value": 1529869,
"range": "± 12894",
"unit": "ns/iter"
},
{
"name": "note-decryption/invalid",
"value": 127483,
"range": "± 256",
"unit": "ns/iter"
},
{
"name": "note-decryption/compact-valid",
"value": 1526487,
"range": "± 110337",
"unit": "ns/iter"
},
{
"name": "compact-note-decryption/invalid",
"value": 1358545556,
"range": "± 1989067",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/valid/10",
"value": 16155479,
"range": "± 29205",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/invalid/10",
"value": 2177244,
"range": "± 5234",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-valid/10",
"value": 16146053,
"range": "± 18132",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-invalid/10",
"value": 2136204,
"range": "± 6869",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/valid/50",
"value": 80766261,
"range": "± 336059",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/invalid/50",
"value": 10824429,
"range": "± 28154",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-valid/50",
"value": 80572233,
"range": "± 211271",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-invalid/50",
"value": 10621781,
"range": "± 65902",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/valid/100",
"value": 161479547,
"range": "± 443112",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/invalid/100",
"value": 21679543,
"range": "± 74931",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-valid/100",
"value": 161258151,
"range": "± 460048",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-invalid/100",
"value": 21243706,
"range": "± 78283",
"unit": "ns/iter"
},
{
"name": "derive_fvk",
"value": 465436,
"range": "± 35809",
"unit": "ns/iter"
},
{
"name": "default_address",
"value": 500855,
"range": "± 2222",
"unit": "ns/iter"
}
]
}
]
}
}

View File

@ -1,281 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes" />
<style>
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-graphs {
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
flex-wrap: wrap;
width: 100%;
}
.benchmark-chart {
max-width: 1000px;
}
</style>
<title>Benchmarks</title>
</head>
<body>
<header id="header">
<div class="header-item">
<strong class="header-label">Last Update:</strong>
<span id="last-update"></span>
</div>
<div class="header-item">
<strong class="header-label">Repository:</strong>
<a id="repository-link" rel="noopener"></a>
</div>
</header>
<main id="main"></main>
<footer>
<button id="dl-button">Download data as JSON</button>
<div class="spacer"></div>
<div class="small">Powered by <a rel="noopener" href="https://github.com/marketplace/actions/continuous-benchmark">github-action-benchmark</a></div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.2/dist/Chart.min.js"></script>
<script src="data.js"></script>
<script id="main-script">
'use strict';
(function() {
// Colors from https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
const toolColors = {
cargo: '#dea584',
go: '#00add8',
benchmarkjs: '#f1e05a',
benchmarkluau: '#000080',
pytest: '#3572a5',
googlecpp: '#f34b7d',
catch2: '#f34b7d',
julia: '#a270ba',
jmh: '#b07219',
benchmarkdotnet: '#178600',
customBiggerIsBetter: '#38ff38',
customSmallerIsBetter: '#ff3838',
_: '#333333'
};
function init() {
function collectBenchesPerTestCase(entries) {
const map = new Map();
for (const entry of entries) {
const {commit, date, tool, benches} = entry;
for (const bench of benches) {
const result = { commit, date, tool, bench };
const arr = map.get(bench.name);
if (arr === undefined) {
map.set(bench.name, [result]);
} else {
arr.push(result);
}
}
}
return map;
}
const data = window.BENCHMARK_DATA;
// Render header
document.getElementById('last-update').textContent = new Date(data.lastUpdate).toString();
const repoLink = document.getElementById('repository-link');
repoLink.href = data.repoUrl;
repoLink.textContent = data.repoUrl;
// Render footer
document.getElementById('dl-button').onclick = () => {
const dataUrl = 'data:,' + JSON.stringify(data, null, 2);
const a = document.createElement('a');
a.href = dataUrl;
a.download = 'benchmark_data.json';
a.click();
};
// Prepare data points for charts
return Object.keys(data.entries).map(name => ({
name,
dataSet: collectBenchesPerTestCase(data.entries[name]),
}));
}
function renderAllChars(dataSets) {
function renderGraph(parent, name, dataset) {
const canvas = document.createElement('canvas');
canvas.className = 'benchmark-chart';
parent.appendChild(canvas);
const color = toolColors[dataset.length > 0 ? dataset[0].tool : '_'];
const data = {
labels: dataset.map(d => d.commit.id.slice(0, 7)),
datasets: [
{
label: name,
data: dataset.map(d => d.bench.value),
borderColor: color,
backgroundColor: color + '60', // Add alpha for #rrggbbaa
}
],
};
const options = {
scales: {
xAxes: [
{
scaleLabel: {
display: true,
labelString: 'commit',
},
}
],
yAxes: [
{
scaleLabel: {
display: true,
labelString: dataset.length > 0 ? dataset[0].bench.unit : '',
},
ticks: {
beginAtZero: true,
}
}
],
},
tooltips: {
callbacks: {
afterTitle: items => {
const {index} = items[0];
const data = dataset[index];
return '\n' + data.commit.message + '\n\n' + data.commit.timestamp + ' committed by @' + data.commit.committer.username + '\n';
},
label: item => {
let label = item.value;
const { range, unit } = dataset[item.index].bench;
label += ' ' + unit;
if (range) {
label += ' (' + range + ')';
}
return label;
},
afterLabel: item => {
const { extra } = dataset[item.index].bench;
return extra ? '\n' + extra : '';
}
}
},
onClick: (_mouseEvent, activeElems) => {
if (activeElems.length === 0) {
return;
}
// XXX: Undocumented. How can we know the index?
const index = activeElems[0]._index;
const url = dataset[index].commit.url;
window.open(url, '_blank');
},
};
new Chart(canvas, {
type: 'line',
data,
options,
});
}
function renderBenchSet(name, benchSet, main) {
const setElem = document.createElement('div');
setElem.className = 'benchmark-set';
main.appendChild(setElem);
const nameElem = document.createElement('h1');
nameElem.className = 'benchmark-title';
nameElem.textContent = name;
setElem.appendChild(nameElem);
const graphsElem = document.createElement('div');
graphsElem.className = 'benchmark-graphs';
setElem.appendChild(graphsElem);
for (const [benchName, benches] of benchSet.entries()) {
renderGraph(graphsElem, benchName, benches)
}
}
const main = document.getElementById('main');
for (const {name, dataSet} of dataSets) {
renderBenchSet(name, dataSet, main);
}
}
renderAllChars(init()); // Start
})();
</script>
</body>
</html>