mirror of
https://github.com/darksaid98/mediaplex.git
synced 2026-12-02 06:28:51 +00:00
update
This commit is contained in:
1 parent
2a91636351
commit
345a8c44ca
4 files changed
-244
No files matched your search
@@ -30,10 +30,4 @@ b.suite(
|
||||
}),
|
||||
b.cycle(),
|
||||
b.complete(),
|
||||
b.save({
|
||||
format: "chart.html",
|
||||
details: true,
|
||||
file: "opus-decoder-benchmark",
|
||||
folder: "./benchmark/results"
|
||||
}),
|
||||
);
|
||||
@@ -30,10 +30,4 @@ b.suite(
|
||||
}),
|
||||
b.cycle(),
|
||||
b.complete(),
|
||||
b.save({
|
||||
format: "chart.html",
|
||||
details: true,
|
||||
file: "opus-encoder-benchmark",
|
||||
folder: "./benchmark/results"
|
||||
}),
|
||||
);
|
||||
@@ -1,116 +0,0 @@
|
||||
<!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/[email protected]/dist/chart.min.js"></script>
|
||||
<title>OpusDecoder Benchmark</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="chart1691341954933" 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 ctx1691341954933 = document
|
||||
.getElementById('chart1691341954933')
|
||||
.getContext('2d')
|
||||
const chart1691341954933 = new Chart(ctx1691341954933, {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: ["mediaplex","@discordjs/opus","opusscript","opusscript (no wasm)"],
|
||||
datasets: [
|
||||
{
|
||||
data: [11441,11821,6095,2584],
|
||||
backgroundColor: ["hsl(116.14800000000001, 85%, 55%)","hsl(120, 85%, 55%)","hsl(61.87200000000001, 85%, 55%)","hsl(26.232, 85%, 55%)"],
|
||||
borderColor: ["hsl(116.14800000000001, 85%, 55%)","hsl(120, 85%, 55%)","hsl(61.87200000000001, 85%, 55%)","hsl(26.232, 85%, 55%)"],
|
||||
borderWidth: 2,
|
||||
},
|
||||
],
|
||||
},
|
||||
options: {
|
||||
maintainAspectRatio: false,
|
||||
plugins: {
|
||||
title: {
|
||||
display: true,
|
||||
text: 'OpusDecoder Benchmark',
|
||||
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>
|
||||
@@ -1,116 +0,0 @@
|
||||
<!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/[email protected]/dist/chart.min.js"></script>
|
||||
<title>OpusEncoder Benchmark</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="chart1691341932445" 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 ctx1691341932445 = document
|
||||
.getElementById('chart1691341932445')
|
||||
.getContext('2d')
|
||||
const chart1691341932445 = new Chart(ctx1691341932445, {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: ["mediaplex","@discordjs/opus","opusscript","opusscript (no wasm)"],
|
||||
datasets: [
|
||||
{
|
||||
data: [3305,3174,4193,260],
|
||||
backgroundColor: ["hsl(94.58399999999999, 85%, 55%)","hsl(90.84, 85%, 55%)","hsl(120, 85%, 55%)","hsl(7.440000000000003, 85%, 55%)"],
|
||||
borderColor: ["hsl(94.58399999999999, 85%, 55%)","hsl(90.84, 85%, 55%)","hsl(120, 85%, 55%)","hsl(7.440000000000003, 85%, 55%)"],
|
||||
borderWidth: 2,
|
||||
},
|
||||
],
|
||||
},
|
||||
options: {
|
||||
maintainAspectRatio: false,
|
||||
plugins: {
|
||||
title: {
|
||||
display: true,
|
||||
text: 'OpusEncoder Benchmark',
|
||||
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>
|
||||
Reference in new issue
Block a user