Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
116 changes: 116 additions & 0 deletions benches/results/git/gitClone.chart.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" />
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.5.1/dist/chart.min.js"></script>
<title>git.gitClone</title>
<style>
body {
margin: 0;
padding: 0;
background: #ddd;
}

.container {
box-sizing: border-box;
height: 96vh;
width: 96vw;
margin: 2vh 2vw;
resize: both;
overflow: hidden;
padding: 20px;
background: white;
box-shadow: 0 0 15px #aaa;
}
</style>
</head>
<body>
<div class="container">
<canvas id="chart1715663164175" width="16" height="9"></canvas>
</div>
<script>
const format = (num) => {
const [whole, fraction] = String(num).split('.')
const chunked = []
whole
.split('')
.reverse()
.forEach((char, index) => {
if (index % 3 === 0) {
chunked.unshift([char])
} else {
chunked[0].unshift(char)
}
})

const fractionStr = fraction !== undefined ? '.' + fraction : ''

return (
chunked.map((chunk) => chunk.join('')).join(' ') + fractionStr
)
}
const ctx1715663164175 = document
.getElementById('chart1715663164175')
.getContext('2d')
const chart1715663164175 = new Chart(ctx1715663164175, {
type: 'bar',
data: {
labels: ["git clone with fs","git clone with efs","git clone with fs + rpc","git clone with efs + rpc"],
datasets: [
{
data: [285.9,1.13,1.12,1.08],
backgroundColor: ["hsl(120, 85%, 55%)","hsl(0.48000000000000675, 85%, 55%)","hsl(0.4680000000000007, 85%, 55%)","hsl(0.4559999999999945, 85%, 55%)"],
borderColor: ["hsl(120, 85%, 55%)","hsl(0.48000000000000675, 85%, 55%)","hsl(0.4680000000000007, 85%, 55%)","hsl(0.4559999999999945, 85%, 55%)"],
borderWidth: 2,
},
],
},
options: {
maintainAspectRatio: false,
plugins: {
title: {
display: true,
text: 'git.gitClone',
font: { size: 20 },
padding: 20,
},
legend: {
display: false,
},
tooltip: {
callbacks: {
label: (context) => {
return format(context.parsed.y) + ' ops/s'
},
},
displayColors: false,
backgroundColor: '#222222',
padding: 10,
cornerRadius: 5,
intersect: false,
},
},
scales: {
x: {
grid: {
color: '#888888',
},
},
y: {
title: {
display: true,
text: 'Operations per second',
padding: 10,
},
grid: {
color: '#888888',
},
},
},
},
})
</script>
</body>
</html>
234 changes: 234 additions & 0 deletions benches/results/git/gitClone.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
{
"name": "git.gitClone",
"date": "2024-05-14T05:06:04.175Z",
"version": "1.3.1",
"results": [
{
"name": "git clone with fs",
"ops": 285.9,
"margin": 5.19,
"options": {
"delay": 0.005,
"initCount": 1,
"minTime": 0.05,
"maxTime": 5,
"minSamples": 5
},
"samples": 73,
"promise": true,
"details": {
"min": 0.0027154084736842107,
"max": 0.006766059055555555,
"mean": 0.0034977637872066598,
"median": 0.003358715333333333,
"standardDeviation": 0.0007910247311976067,
"marginOfError": 0.00018146158631976225,
"relativeMarginOfError": 5.18793141445034,
"standardErrorOfMean": 0.0000925824419998787,
"sampleVariance": 6.257201253662459e-7,
"sampleResults": [
0.0027154084736842107,
0.00273815147368421,
0.0027757345263157893,
0.002780739210526316,
0.002782677,
0.0027879403684210524,
0.002797552263157895,
0.002812018631578947,
0.0028324016315789476,
0.0028476355,
0.0028583267894736844,
0.0028609695000000003,
0.0028689853684210525,
0.0028986406666666664,
0.002904041944444444,
0.0029174914736842103,
0.002924491388888889,
0.002928144777777778,
0.0029409251666666666,
0.002951933117647059,
0.0030185034444444444,
0.003055392352941177,
0.0030592592777777777,
0.003073742388888889,
0.0030992268823529408,
0.003100035388888889,
0.0031029319411764703,
0.0031165888947368423,
0.003152885058823529,
0.0032014712222222224,
0.003205313882352941,
0.0032273109375,
0.0032338704375,
0.0032720716666666664,
0.0033201861666666667,
0.0033257693125,
0.003358715333333333,
0.003362749533333333,
0.003393119444444445,
0.0034055998333333334,
0.003422327611111111,
0.0034268420588235296,
0.003430203866666667,
0.003467197,
0.0034861114444444444,
0.0035176128888888885,
0.003528548388888889,
0.0035421834705882354,
0.0035711061666666663,
0.0036119550555555554,
0.00362715325,
0.0036617186666666668,
0.0036657584444444447,
0.0036737448888888888,
0.003738180947368421,
0.0037646975555555556,
0.003783249388888889,
0.003789516733333333,
0.0038097116111111113,
0.003848151,
0.003875345444444444,
0.003974637888888889,
0.0039856986111111116,
0.004071035388888889,
0.0040729768888888886,
0.004401614888888889,
0.004438878722222222,
0.004459942421052632,
0.004516566888888889,
0.004585082823529411,
0.0062260557222222224,
0.006587938611111111,
0.006766059055555555
]
},
"completed": true,
"percentSlower": 0
},
{
"name": "git clone with efs",
"ops": 1.13,
"margin": 2.11,
"options": {
"delay": 0.005,
"initCount": 1,
"minTime": 0.05,
"maxTime": 5,
"minSamples": 5
},
"samples": 10,
"promise": true,
"details": {
"min": 0.844441512,
"max": 0.936988432,
"mean": 0.8869133151999999,
"median": 0.8860309725,
"standardDeviation": 0.026193721694382822,
"marginOfError": 0.018736557899074267,
"relativeMarginOfError": 2.1125579668233025,
"standardErrorOfMean": 0.008283182095081462,
"sampleVariance": 0.0006861110562027812,
"sampleResults": [
0.844441512,
0.864125021,
0.869098518,
0.875580505,
0.878587426,
0.893474519,
0.896073368,
0.902214383,
0.908549468,
0.936988432
]
},
"completed": true,
"percentSlower": 99.6
},
{
"name": "git clone with fs + rpc",
"ops": 1.12,
"margin": 3.61,
"options": {
"delay": 0.005,
"initCount": 1,
"minTime": 0.05,
"maxTime": 5,
"minSamples": 5
},
"samples": 10,
"promise": true,
"details": {
"min": 0.833563098,
"max": 0.961613677,
"mean": 0.8903824716,
"median": 0.8776231575,
"standardDeviation": 0.0449691942870019,
"marginOfError": 0.03216678875433793,
"relativeMarginOfError": 3.6126933964159056,
"standardErrorOfMean": 0.01422050784895576,
"sampleVariance": 0.002022228434822124,
"sampleResults": [
0.833563098,
0.841558749,
0.859986109,
0.861867099,
0.870731132,
0.884515183,
0.918094687,
0.921182672,
0.95071231,
0.961613677
]
},
"completed": true,
"percentSlower": 99.61
},
{
"name": "git clone with efs + rpc",
"ops": 1.08,
"margin": 2.88,
"options": {
"delay": 0.005,
"initCount": 1,
"minTime": 0.05,
"maxTime": 5,
"minSamples": 5
},
"samples": 10,
"promise": true,
"details": {
"min": 0.890534524,
"max": 0.992862275,
"mean": 0.9219758064999999,
"median": 0.9087433275,
"standardDeviation": 0.03712573774216667,
"marginOfError": 0.02655630776214302,
"relativeMarginOfError": 2.8803692651064186,
"standardErrorOfMean": 0.01174018910793237,
"sampleVariance": 0.0013783204029001385,
"sampleResults": [
0.890534524,
0.891084456,
0.895261198,
0.896487974,
0.904493645,
0.91299301,
0.91545642,
0.941467577,
0.979116986,
0.992862275
]
},
"completed": true,
"percentSlower": 99.62
}
],
"fastest": {
"name": "git clone with fs",
"index": 0
},
"slowest": {
"name": "git clone with efs + rpc",
"index": 3
}
}
17 changes: 17 additions & 0 deletions benches/results/git/gitClone_metrics.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# TYPE git.gitClone_ops gauge
git.gitClone_ops{name="git clone with fs"} 285.9
git.gitClone_ops{name="git clone with efs"} 1.13
git.gitClone_ops{name="git clone with fs + rpc"} 1.12
git.gitClone_ops{name="git clone with efs + rpc"} 1.08

# TYPE git.gitClone_margin gauge
git.gitClone_margin{name="git clone with fs"} 5.19
git.gitClone_margin{name="git clone with efs"} 2.11
git.gitClone_margin{name="git clone with fs + rpc"} 3.61
git.gitClone_margin{name="git clone with efs + rpc"} 2.88

# TYPE git.gitClone_samples counter
git.gitClone_samples{name="git clone with fs"} 73
git.gitClone_samples{name="git clone with efs"} 10
git.gitClone_samples{name="git clone with fs + rpc"} 10
git.gitClone_samples{name="git clone with efs + rpc"} 10
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/classes/PolykeyAgent.html
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ <h5><span class="tsd-kind-parameter">password</span>: <span class="tsd-signature
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<p>Inherited from CreateDestroyStartStop.destroy</p>
<ul>
<li>Defined in <a href="https://github.com/MatrixAI/Polykey/blob/master/src/PolykeyAgent.ts#L970">src/PolykeyAgent.ts:970</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/MatrixAI/Polykey/blob/master/src/PolykeyAgent.ts#L971">src/PolykeyAgent.ts:971</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><a id="dispatchEvent" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>dispatch<wbr/>Event</span><a href="#dispatchEvent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures tsd-is-inherited tsd-is-external">
Expand Down Expand Up @@ -556,7 +556,7 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise<
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<p>Inherited from CreateDestroyStartStop.stop</p>
<ul>
<li>Defined in <a href="https://github.com/MatrixAI/Polykey/blob/master/src/PolykeyAgent.ts#L936">src/PolykeyAgent.ts:936</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/MatrixAI/Polykey/blob/master/src/PolykeyAgent.ts#L937">src/PolykeyAgent.ts:937</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="createPolykeyAgent" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>create<wbr/>Polykey<wbr/>Agent</span><a href="#createPolykeyAgent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
Expand Down
Loading