mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-29 16:08:32 +02:00
feat: Update benchmarks (#386)
* feat: Update benchmarks * fix: Improve blog * feat: Add result files with 1 and 100 parallel clients * fix: Add elasticsearch benchmark numbers from dbpedia 1M openai embeddings * feat: Make mean time (latency) the default metric for the 2nd plot * feat: Improve conclusions based on es results * fix: Make charts work on changing dataset * fix: Typo in table * feat: Update results with quantization * fix: Show a single graph to keep things simple * fix: Improve words * review fixes * add link to open-source * feat: Improve units to make results more readable * fix: Small grammatical mistake * fix: Make search threads value constant based on plot metric * feat: Make dataset num vectors more readable * fix: Spacing in table * feat: Add results from the latest Redis benchmarks * feat: Update benchmarks page * feat: Update date and some of the points * feat: Update benchmarks and content * chores: Improve observations * feat: Improve observations and put it after the graph --------- Co-authored-by: generall <andrey@vasnetsov.com>
This commit is contained in:
co-authored by
generall
parent
1ac5118071
commit
80f2b6f978
@@ -4,12 +4,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
let engineToColor = {
|
||||
redis: '#5961FF',
|
||||
milvus: '#1493cc',
|
||||
weaviate: '#01cc26',
|
||||
qdrant: '#bc1439',
|
||||
elasticsearch: '#f9b110',
|
||||
elastic: '#f9b110',
|
||||
}
|
||||
|
||||
@@ -30,13 +30,22 @@ const normalizedTitles = {
|
||||
dataset_name: 'Dataset',
|
||||
rps: 'RPS',
|
||||
mean_precisions: 'Precision',
|
||||
total_upload_time: 'Upload + Index Time (s)',
|
||||
upload_time: 'Upload Time (s)',
|
||||
mean_time: 'Latency (s)',
|
||||
p95_time: 'P95 (s)',
|
||||
p99_time: 'P99 (s)'
|
||||
total_upload_time: 'Upload + Index Time(m)',
|
||||
upload_time: 'Upload Time(m)',
|
||||
mean_time: 'Latency(ms)',
|
||||
p95_time: 'P95(ms)',
|
||||
p99_time: 'P99(ms)',
|
||||
setup_name: 'Setup',
|
||||
// engine_params: 'Run Params',
|
||||
}
|
||||
|
||||
const columnMultiplyFactor = {
|
||||
total_upload_time: 1/60,
|
||||
upload_time: 1/60,
|
||||
mean_time: 1000,
|
||||
p95_time: 1000,
|
||||
p99_time: 1000
|
||||
}
|
||||
|
||||
function extractUniqueVals(data, key) {
|
||||
let vals = {};
|
||||
@@ -326,12 +335,24 @@ const renderTable = function (tableData, chartId, selectedPlotValue) {
|
||||
let normTitle = title;
|
||||
if (normalizedTitles.hasOwnProperty(title)) {
|
||||
normTitle = normalizedTitles[title];
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
return `<th scope="col">${normTitle}</th>`;
|
||||
});
|
||||
|
||||
const rows = tableData.map(obj => {
|
||||
const row = Object.values(obj).map((value, i) => {
|
||||
const row = Object.keys(obj).map((key, i) => {
|
||||
let value = obj[key];
|
||||
|
||||
if (!normalizedTitles.hasOwnProperty(key)) {
|
||||
return "";
|
||||
}
|
||||
|
||||
if (key === 'setup_name') {
|
||||
return `<td title='${JSON.stringify(obj['engine_params'])}'><u>${value}</u></td>`;
|
||||
}
|
||||
|
||||
if (typeof value === 'object') {
|
||||
value = JSON.stringify(value)
|
||||
}
|
||||
@@ -348,11 +369,11 @@ const renderTable = function (tableData, chartId, selectedPlotValue) {
|
||||
});
|
||||
|
||||
const table = document.createElement('table');
|
||||
table.classList.add('table', 'table-striped', 'table-responsive', 'table-sm');
|
||||
table.classList.add('table', 'table-striped', 'table-responsive', 'table-md');
|
||||
table.innerHTML = `<thead><tr>${titleElements.join('')}</tr></thead><tbody>${rows.join('')}</tbody>`;
|
||||
|
||||
if (document.getElementById('table-' + chartId).querySelector('.table')) {
|
||||
document.getElementById('table-' + chartId).querySelector('.table').remove();
|
||||
}
|
||||
document.getElementById('table-' + chartId).append(table)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user