Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements #808

Merged
merged 19 commits into from
Oct 11, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"tape": "^5.6.1",
"tcompare": "^6.0.0",
"tsx": "^3.12.1",
"turbo": "^1.8.5",
"turbo": "^2.1.3",
"typescript": "^5.0.0"
},
"author": {
Expand Down
116 changes: 116 additions & 0 deletions packages/benchmarks/benchmark/results/reduce.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/[email protected]/dist/chart.min.js"></script>
<title>Example</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="chart1686143805810" 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 ctx1686143805810 = document
.getElementById('chart1686143805810')
.getContext('2d')
const chart1686143805810 = new Chart(ctx1686143805810, {
type: 'bar',
data: {
labels: ["3arr - 0.5"],
datasets: [
{
data: [2606835],
backgroundColor: ["hsl(120, 85%, 55%)"],
borderColor: ["hsl(120, 85%, 55%)"],
borderWidth: 2,
},
],
},
options: {
maintainAspectRatio: false,
plugins: {
title: {
display: true,
text: 'Example',
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>
21 changes: 21 additions & 0 deletions packages/benchmarks/benchmark/results/reduce.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Example",
"date": "2023-06-07T13:16:45.810Z",
"version": "1.0.0",
"results": [
{
"name": "3arr - 0.5",
"ops": 2606835,
"margin": 0.16,
"percentSlower": 0
}
],
"fastest": {
"name": "3arr - 0.5",
"index": 0
},
"slowest": {
"name": "3arr - 0.5",
"index": 0
}
}
2 changes: 1 addition & 1 deletion packages/orama/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
"commitizen": "^4.2.6",
"glob": "^9.2.3",
"prettier": "^2.8.1",
"tap": "^18.6.1",
"tap": "^21.0.1",
"tap-mocha-reporter": "^5.0.3",
"tape": "^5.6.1",
"tcompare": "^6.0.0",
Expand Down
Loading
Loading