This research paper compares the Lua APIs and performance of two NoSQL databases, Redis and YottaDB, using a 3n+1 sequence generator as a benchmark tool.
Bibliographic Information: Hoyt, B. (2024). Lua API and benchmark design using 3n+1 sequences: Comparing API elegance and raw speed in Redis and YottaDB databases.
Research Objective: This study investigates the differences in Lua API design and performance between Redis and YottaDB, employing a 3n+1 sequence benchmark to assess their relative strengths and weaknesses in a concurrent access scenario.
Methodology: The authors implemented a 3n+1 sequence generator in Lua, leveraging both Redis and YottaDB's Lua APIs. They then benchmarked both databases using this tool, comparing their performance in single and multi-process scenarios on a machine with an AMD Ryzen 7 5800X 8-core processor.
Key Findings: The benchmark results revealed that YottaDB significantly outperformed Redis in both single and multi-process scenarios. This superior performance is attributed to YottaDB's in-process data sharing mechanism, which eliminates the need to convert queries into bitstreams for TCP/IP transfer, unlike Redis. Additionally, YottaDB's Lua API demonstrated greater elegance in transaction handling and object-oriented database access compared to Redis.
Main Conclusions: The study concludes that YottaDB's Lua API offers a more efficient and programmer-friendly approach for concurrent database access compared to Redis. This advantage stems from YottaDB's architectural design, which prioritizes in-process data sharing and simplifies complex operations like transaction management.
Significance: This research provides valuable insights for developers selecting databases for applications requiring high-performance concurrent access. The findings highlight the impact of database architecture and API design on overall performance, emphasizing the benefits of YottaDB's approach for demanding workloads.
Limitations and Future Research: The study was limited to a single benchmark tool and a specific hardware configuration. Future research could explore the performance of these databases using diverse benchmarks and hardware setups. Additionally, investigating the impact of database replication on performance in both systems would be beneficial.
Sang ngôn ngữ khác
từ nội dung nguồn
arxiv.org
Thông tin chi tiết chính được chắt lọc từ
by Berwyn Hoyt lúc arxiv.org 11-14-2024
https://arxiv.org/pdf/2411.08206.pdfYêu cầu sâu hơn