The minimalistic document archiving platform.
chore(server): remove skipped uniq benchmark file (#1009)
Corentin Thomasset59a62cbf6aaf
diff --git a/apps/papra-server/src/modules/shared/uniq.bench.ts b/apps/papra-server/src/modules/shared/uniq.bench.tsdeleted file mode 100644index f271745c..00000000--- a/apps/papra-server/src/modules/shared/uniq.bench.ts+++ /dev/null@@ -1,58 +0,0 @@-import { uniq } from 'lodash-es';-import { bench, describe } from 'vitest';--describe.skip('uniq', () => {- const array = Array.from({ length: 10_000 }, (_, i) => i % 100);-- bench('array.from(new Set(array))', () => {- const result = Array.from(new Set(array));- void result;- });-- bench('[...new Set(array)]', () => {- const result = [...new Set(array)];- void result;- });-- bench('for of with set', () => {- const seen = new Set<number>();- const result: number[] = [];- for (const item of array) {- if (!seen.has(item)) {- seen.add(item);- result.push(item);- }- }- void result;- });-- bench('for of with object', () => {- const seen: Record<number, boolean> = {};- const result: number[] = [];- for (const item of array) {- if (seen[item] === undefined) {- seen[item] = true;- result.push(item);- }- }- void result;- });-- bench('for loop with object', () => {- const seen: Record<number, boolean> = {};- const result: number[] = [];- for (let i = 0; i < array.length; i++) {- const item = array[i];- if (item !== undefined && seen[item] === undefined) {- seen[item] = true;- result.push(item);- }- }- void result;- });-- bench('lodash uniq', () => {- const result = uniq(array);- void result;- });-});