This commit is contained in:
str4d 2022-02-03 21:28:32 +00:00
parent e9bf51c40d
commit b8e58b4cf8
6 changed files with 4 additions and 584 deletions

View File

@ -1,302 +0,0 @@
window.BENCHMARK_DATA = {
"lastUpdate": 1643850365489,
"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": "1f4acdf878def4999f9ab3da3491290f350a5fc8",
"message": "Merge pull request #270 from zcash/derive-internal-keys\n\nDerive internal keys.",
"timestamp": "2022-02-03T00:42:23Z",
"tree_id": "18b59c85548e7fd44d8b54675ebff1268283a440",
"url": "https://github.com/zcash/orchard/commit/1f4acdf878def4999f9ab3da3491290f350a5fc8"
},
"date": 1643850364502,
"tool": "cargo",
"benches": [
{
"name": "proving/bundle/1",
"value": 4475459011,
"range": "± 96336650",
"unit": "ns/iter"
},
{
"name": "proving/bundle/2",
"value": 4376705104,
"range": "± 99667593",
"unit": "ns/iter"
},
{
"name": "proving/bundle/3",
"value": 6066772467,
"range": "± 70707770",
"unit": "ns/iter"
},
{
"name": "proving/bundle/4",
"value": 7697955356,
"range": "± 81028403",
"unit": "ns/iter"
},
{
"name": "verifying/bundle/1",
"value": 35739587,
"range": "± 1595229",
"unit": "ns/iter"
},
{
"name": "verifying/bundle/2",
"value": 35622886,
"range": "± 2784638",
"unit": "ns/iter"
},
{
"name": "verifying/bundle/3",
"value": 39186463,
"range": "± 1444228",
"unit": "ns/iter"
},
{
"name": "verifying/bundle/4",
"value": 43551293,
"range": "± 1811202",
"unit": "ns/iter"
},
{
"name": "note-decryption/valid",
"value": 1093292,
"range": "± 42016",
"unit": "ns/iter"
},
{
"name": "note-decryption/invalid",
"value": 136748,
"range": "± 8740",
"unit": "ns/iter"
},
{
"name": "note-decryption/compact-valid",
"value": 1064671,
"range": "± 63400",
"unit": "ns/iter"
},
{
"name": "compact-note-decryption/invalid",
"value": 158047963,
"range": "± 2514293",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/valid/10",
"value": 22672300,
"range": "± 566219",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/invalid/10",
"value": 2361340,
"range": "± 92004",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-valid/10",
"value": 21465274,
"range": "± 897313",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-invalid/10",
"value": 2599107,
"range": "± 102989",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/valid/50",
"value": 113043279,
"range": "± 6022483",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/invalid/50",
"value": 13982386,
"range": "± 225883",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-valid/50",
"value": 117121152,
"range": "± 5983964",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-invalid/50",
"value": 13183734,
"range": "± 340717",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/valid/100",
"value": 233312045,
"range": "± 7718407",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/invalid/100",
"value": 26994318,
"range": "± 740341",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-valid/100",
"value": 244750141,
"range": "± 8584275",
"unit": "ns/iter"
},
{
"name": "batch-note-decryption/compact-invalid/100",
"value": 26711666,
"range": "± 792919",
"unit": "ns/iter"
},
{
"name": "WIDTH = 3, RATE = 2-prover",
"value": 71141787,
"range": "± 3518340",
"unit": "ns/iter"
},
{
"name": "WIDTH = 3, RATE = 2-verifier",
"value": 3743903,
"range": "± 121483",
"unit": "ns/iter"
},
{
"name": "WIDTH = 9, RATE = 8-prover",
"value": 170582035,
"range": "± 4372156",
"unit": "ns/iter"
},
{
"name": "WIDTH = 9, RATE = 8-verifier",
"value": 5594038,
"range": "± 94033",
"unit": "ns/iter"
},
{
"name": "WIDTH = 12, RATE = 11-prover",
"value": 244899607,
"range": "± 5696143",
"unit": "ns/iter"
},
{
"name": "WIDTH = 12, RATE = 11-verifier",
"value": 6736162,
"range": "± 176241",
"unit": "ns/iter"
},
{
"name": "Poseidon/2-to-1",
"value": 45427,
"range": "± 865",
"unit": "ns/iter"
},
{
"name": "Sinsemilla/hash-to-point/510",
"value": 164463,
"range": "± 3508",
"unit": "ns/iter"
},
{
"name": "Sinsemilla/hash/510",
"value": 179546,
"range": "± 6082",
"unit": "ns/iter"
},
{
"name": "Sinsemilla/commit/510",
"value": 295701,
"range": "± 6759",
"unit": "ns/iter"
},
{
"name": "Sinsemilla/short-commit/510",
"value": 296042,
"range": "± 6872",
"unit": "ns/iter"
},
{
"name": "Sinsemilla/hash-to-point/520",
"value": 154679,
"range": "± 10235",
"unit": "ns/iter"
},
{
"name": "Sinsemilla/hash/520",
"value": 176673,
"range": "± 6596",
"unit": "ns/iter"
},
{
"name": "Sinsemilla/commit/520",
"value": 287087,
"range": "± 8394",
"unit": "ns/iter"
},
{
"name": "Sinsemilla/short-commit/520",
"value": 274349,
"range": "± 16379",
"unit": "ns/iter"
},
{
"name": "Sinsemilla/hash-to-point/1086",
"value": 330585,
"range": "± 17809",
"unit": "ns/iter"
},
{
"name": "Sinsemilla/hash/1086",
"value": 347634,
"range": "± 15350",
"unit": "ns/iter"
},
{
"name": "Sinsemilla/commit/1086",
"value": 467910,
"range": "± 14330",
"unit": "ns/iter"
},
{
"name": "Sinsemilla/short-commit/1086",
"value": 464703,
"range": "± 17341",
"unit": "ns/iter"
},
{
"name": "derive_fvk",
"value": 538417,
"range": "± 20516",
"unit": "ns/iter"
},
{
"name": "default_address",
"value": 616699,
"range": "± 24330",
"unit": "ns/iter"
}
]
}
]
}
}

View File

@ -1,278 +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',
pytest: '#3572a5',
googlecpp: '#f34b7d',
catch2: '#f34b7d',
julia: '#a270ba',
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>

View File

@ -166,7 +166,7 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous">
<h1><a class="header" href="#orchard-a-hrefhttpscratesiocratesorchardimg-srchttpsimgshieldsiocratesvorchardsvg-altcratesio-a" id="orchard-a-hrefhttpscratesiocratesorchardimg-srchttpsimgshieldsiocratesvorchardsvg-altcratesio-a">orchard <a href="https://crates.io/crates/orchard"><img src="https://img.shields.io/crates/v/orchard.svg" alt="Crates.io" /></a></a></h1>
<p><strong>IMPORTANT</strong>: This library is being actively developed and should not be used in production software.</p>
<p>Requires Rust 1.51+.</p>
<p>Requires Rust 1.54+.</p>
<h2><a class="header" href="#documentation" id="documentation">Documentation</a></h2>
<ul>
<li><a href="https://zcash.github.io/orchard/">The Orchard Book</a></li>

View File

@ -168,7 +168,7 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous">
<h1><a class="header" href="#orchard-a-hrefhttpscratesiocratesorchardimg-srchttpsimgshieldsiocratesvorchardsvg-altcratesio-a" id="orchard-a-hrefhttpscratesiocratesorchardimg-srchttpsimgshieldsiocratesvorchardsvg-altcratesio-a">orchard <a href="https://crates.io/crates/orchard"><img src="https://img.shields.io/crates/v/orchard.svg" alt="Crates.io" /></a></a></h1>
<p><strong>IMPORTANT</strong>: This library is being actively developed and should not be used in production software.</p>
<p>Requires Rust 1.51+.</p>
<p>Requires Rust 1.54+.</p>
<h2><a class="header" href="#documentation" id="documentation">Documentation</a></h2>
<ul>
<li><a href="https://zcash.github.io/orchard/">The Orchard Book</a></li>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long