From f6d7c3fdbecbcb880c0c02fdffefa1f467c46b03 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Thu, 7 May 2026 14:18:23 +0800 Subject: Allow specifying file size via CLI. --- result.txt | 58 ++++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 14 deletions(-) (limited to 'result.txt') diff --git a/result.txt b/result.txt index b9407ce..4842d9c 100644 --- a/result.txt +++ b/result.txt @@ -1,35 +1,65 @@ ============================================================= SEARCH BENCHMARK: Suffix array vs. Linear regex -ARTICLE SIZE: 8 KB +ARTICLE SIZE: 4.1 KB ============================================================= +100 files (Targeting: keyword_-1): +----------------+----------------------+--------------------- +METRIC | SA | REGEX +----------------+----------------------+--------------------- +Search time | 0.0009s | 0.0084s +Peak RAM | 7968 KB | 9676 KB +Indexing time | 1.3332s | N/A +Index size | 2070.38 KB | N/A +----------------+----------------------+--------------------- + +200 files (Targeting: keyword_-1): +----------------+----------------------+--------------------- +METRIC | SA | REGEX +----------------+----------------------+--------------------- +Search time | 0.0007s | 0.0161s +Peak RAM | 7984 KB | 9532 KB +Indexing time | 2.8687s | N/A +Index size | 4141.11 KB | N/A +----------------+----------------------+--------------------- + +300 files (Targeting: keyword_-1): +----------------+----------------------+--------------------- +METRIC | SA | REGEX +----------------+----------------------+--------------------- +Search time | 0.0009s | 0.0242s +Peak RAM | 8024 KB | 9680 KB +Indexing time | 4.5658s | N/A +Index size | 6211.76 KB | N/A +----------------+----------------------+--------------------- + 500 files (Targeting: keyword_-1): ----------------+----------------------+--------------------- METRIC | SA | REGEX ----------------+----------------------+--------------------- -Search time | 0.0014s | 0.0451s -Peak RAM | 8124 KB | 9612 KB -Indexing time | 18.1865s | N/A -Index size | 19610.39 KB | N/A +Search time | 0.0013s | 0.0455s +Peak RAM | 8116 KB | 9728 KB +Indexing time | 9.8992s | N/A +Index size | 10353.31 KB | N/A ----------------+----------------------+--------------------- 1000 files (Targeting: keyword_-1): ----------------+----------------------+--------------------- METRIC | SA | REGEX ----------------+----------------------+--------------------- -Search time | 0.0021s | 0.0918s -Peak RAM | 8280 KB | 9960 KB -Indexing time | 43.1748s | N/A -Index size | 39225.06 KB | N/A +Search time | 0.0021s | 0.0957s +Peak RAM | 8304 KB | 9972 KB +Indexing time | 21.2007s | N/A +Index size | 20707.28 KB | N/A ----------------+----------------------+--------------------- -10000 files (Targeting: keyword_-1): +5000 files (Targeting: keyword_-1): ----------------+----------------------+--------------------- METRIC | SA | REGEX ----------------+----------------------+--------------------- -Search time | 0.0173s | 1.1275s -Peak RAM | 11848 KB | 13392 KB -Indexing time | 663.3909s | N/A -Index size | 392263.01 KB | N/A +Search time | 0.0088s | 0.4937s +Peak RAM | 9948 KB | 11436 KB +Indexing time | 138.7510s | N/A +Index size | 103557.18 KB | N/A ----------------+----------------------+--------------------- -- cgit v1.2.3