提问 HN:有哪些好的 SQL 语句可以用来测试 RDBMS 的性能?

1作者: herodoturtle6 个月前
大家好, 我们正在用 C 语言开发一个基准测试工具,用于比较各种 RDBMS 纯净安装(Postgres、MySQL 等)中 DML 语句的执行速度。 我们做的并不复杂 / 科学,纯粹是为了内部学习。 在我们的基准测试中,应该包含哪些特定的 DML 语句呢? 我们欢迎关于这个主题的任何提示或见解。 (另外,我们计划使用 clock_t 来跟踪 CPU 时间,使用持续数百秒的长时间循环)。当然,我们也欢迎关于这方面的建议! 谢谢 ^_^
查看原文
Hi folks,<p>We’re building a benchmark tool in C to compare the speed of DML statements in assorted RDBMS vanilla installations (Postgres, MySQL, etc.).<p>We’re not doing anything fancy &#x2F; scientific - it’s purely for internal learning purposes.<p>Are there any particular DML statements that we should include in our benchmark?<p>We’d welcome any tips or insights on this topic.<p>(As an aside, we plan to use clock_t for tracking CPU time, with long-running loops that span several hundred seconds). But of course we welcome advice on this too!<p>Thanks ^_^