From 2be01f715ff94c15fb7a4393410b1e8e4574525e Mon Sep 17 00:00:00 2001 From: xinlongchen Date: Wed, 18 Mar 2026 11:46:23 +0800 Subject: [PATCH] add benchmark for sqlite --- sqlite.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/sqlite.spec b/sqlite.spec index a0b77aa..458be67 100644 --- a/sqlite.spec +++ b/sqlite.spec @@ -7,7 +7,7 @@ Summary: Library that implements an embeddable SQL database engine Name: sqlite Version: 3.42.0 -Release: 9%{?dist} +Release: 10%{?dist} License: blessing URL: http://www.sqlite.org/ Source0: http://www.sqlite.org/%{year}/sqlite-src-%{realver}.zip @@ -77,9 +77,11 @@ Summary: Sqlite tools Group: Development/Tools %description tools -Sqlite related tools. Currently contains only sqldiff. +Sqlite related tools. - sqldiff: The sqldiff binary is a command-line utility program that displays the differences between SQLite databases. +- sqlite3-speedtest1: The speedtest1 benchmark program for measuring + SQLite performance (INSERT, SELECT, UPDATE, DELETE, transactions, etc.). %package tcl Summary: Tcl module for the sqlite3 embeddable SQL database engine @@ -142,6 +144,9 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool %make_build sqldiff +# Build speedtest1 benchmark tool +%make_build speedtest1 + %install @@ -152,6 +157,7 @@ install -D -m0755 lemon %{buildroot}/%{_bindir}/lemon install -D -m0644 tool/lempar.c %{buildroot}/%{_datadir}/lemon/lempar.c install -D -m0755 sqlite3_analyzer %{buildroot}/%{_bindir}/sqlite3_analyzer install -D -m0755 sqldiff %{buildroot}/%{_bindir}/sqldiff +install -D -m0755 speedtest1 %{buildroot}/%{_bindir}/sqlite3-speedtest1 rm -f %{buildroot}%{_libdir}/*.la @@ -198,6 +204,7 @@ make test %files tools %{_bindir}/sqldiff +%{_bindir}/sqlite3-speedtest1 %files analyzer %{_bindir}/sqlite3_analyzer @@ -205,6 +212,10 @@ make test %changelog +* Wed Mar 18 2026 Xinlong Chen - 3.42.0-10 +- [Type] sync +- [DESC] Add benchmark + * Thu Jul 17 2025 xiaoyunzhao - 3.42.0-9 - [Type] Security - [DESC] Fix CVE-2025-6965 -- Gitee