-
-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55cd4f7
commit 152bb73
Showing
32 changed files
with
1,899 additions
and
1,804 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>insert multiple</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="chart1728394480160" 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 ctx1728394480160 = document | ||
.getElementById('chart1728394480160') | ||
.getContext('2d') | ||
const chart1728394480160 = new Chart(ctx1728394480160, { | ||
type: 'bar', | ||
data: { | ||
labels: ["insert multiple in Orama 2.1.1","insert multiple in Orama 3.0.0-rc-2","insert multiple in Orama latest"], | ||
datasets: [ | ||
{ | ||
data: [7,10,8], | ||
backgroundColor: ["hsl(84, 85%, 55%)","hsl(120, 85%, 55%)","hsl(96, 85%, 55%)"], | ||
borderColor: ["hsl(84, 85%, 55%)","hsl(120, 85%, 55%)","hsl(96, 85%, 55%)"], | ||
borderWidth: 2, | ||
}, | ||
], | ||
}, | ||
options: { | ||
maintainAspectRatio: false, | ||
plugins: { | ||
title: { | ||
display: true, | ||
text: 'insert multiple', | ||
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "insert multiple", | ||
"date": "2024-10-08T13:34:40.160Z", | ||
"version": "1.0.0", | ||
"results": [ | ||
{ | ||
"name": "insert multiple in Orama 2.1.1", | ||
"ops": 7, | ||
"margin": 6.44, | ||
"percentSlower": 30 | ||
}, | ||
{ | ||
"name": "insert multiple in Orama 3.0.0-rc-2", | ||
"ops": 10, | ||
"margin": 5.2, | ||
"percentSlower": 0 | ||
}, | ||
{ | ||
"name": "insert multiple in Orama latest", | ||
"ops": 8, | ||
"margin": 2.96, | ||
"percentSlower": 20 | ||
} | ||
], | ||
"fastest": { | ||
"name": "insert multiple in Orama 3.0.0-rc-2", | ||
"index": 1 | ||
}, | ||
"slowest": { | ||
"name": "insert multiple in Orama 2.1.1", | ||
"index": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>insert</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="chart1728394461827" 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 ctx1728394461827 = document | ||
.getElementById('chart1728394461827') | ||
.getContext('2d') | ||
const chart1728394461827 = new Chart(ctx1728394461827, { | ||
type: 'bar', | ||
data: { | ||
labels: ["insert in Orama 2.1.1","insert in Orama 3.0.0-rc-2","insert in Orama latest"], | ||
datasets: [ | ||
{ | ||
data: [7.95,8.95,8.02], | ||
backgroundColor: ["hsl(106.596, 85%, 55%)","hsl(120, 85%, 55%)","hsl(107.532, 85%, 55%)"], | ||
borderColor: ["hsl(106.596, 85%, 55%)","hsl(120, 85%, 55%)","hsl(107.532, 85%, 55%)"], | ||
borderWidth: 2, | ||
}, | ||
], | ||
}, | ||
options: { | ||
maintainAspectRatio: false, | ||
plugins: { | ||
title: { | ||
display: true, | ||
text: 'insert', | ||
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "insert", | ||
"date": "2024-10-08T13:34:21.827Z", | ||
"version": "1.0.0", | ||
"results": [ | ||
{ | ||
"name": "insert in Orama 2.1.1", | ||
"ops": 7.95, | ||
"margin": 1.63, | ||
"percentSlower": 11.17 | ||
}, | ||
{ | ||
"name": "insert in Orama 3.0.0-rc-2", | ||
"ops": 8.95, | ||
"margin": 3.28, | ||
"percentSlower": 0 | ||
}, | ||
{ | ||
"name": "insert in Orama latest", | ||
"ops": 8.02, | ||
"margin": 4.78, | ||
"percentSlower": 10.39 | ||
} | ||
], | ||
"fastest": { | ||
"name": "insert in Orama 3.0.0-rc-2", | ||
"index": 1 | ||
}, | ||
"slowest": { | ||
"name": "insert in Orama 2.1.1", | ||
"index": 0 | ||
} | ||
} |
Oops, something went wrong.