arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.08206cs.DBcs.PL
收藏

使用 3n+1 序列设计 Lua API 与基准测试:比较 Redis 和 YottaDB 数据库的 API 优雅性与原始速度

Lua API and benchmark design using 3n+1 sequences: Comparing API elegance and raw speed in Redis and YottaDB databases

Berwyn Hoyt

AI总结:

本文通过比较 Redis 和 YottaDB 的 Lua API 优雅性与效率,并利用 3n+1 序列生成器进行基准测试,探讨了面向对象编程在保持 API 效率中的作用,展示了各数据库独特设计的测试结果。

摘要:

数据库 API 的优雅性至关重要。通常,数据库 API 更适合数据库设计者,而非程序员对优雅性与效率的追求。本文兼顾两者:首先,比较两个独立数据库 Redis 和 YottaDB 的 Lua API。其次,深入 API 底层,探讨面向对象编程如何帮助保持 API 效率。最后,使用各 API 实现一个 3n+1 序列生成器(即著名的 Collatz 猜想),对两个数据库进行基准测试。文章涵盖了 Lua API 的特性、数据库的特异性以及基准测试工具的精妙选择,并展示了每个数据库独特设计的基准测试结果。

英文摘要:

Elegance of a database API matters. Frequently, database APIs suit the database designer, rather than the programmer's desire for elegance and efficiency. This article pursues both: firstly, by comparing the Lua APIs for two separate databases, Redis and YottaDB. Secondly, it looks under the API covers at how object orientation can help to retain API efficiency. Finally, it benchmarks both databases using each API to implement a 3n+1 sequence generator (of Collatz Conjecture fame). It covers the eccentricities of the Lua APIs, the databases, and the nifty choice of benchmark tool, presenting benchmark results of each database's unique design.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑