summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-03-25 18:04:22 +0100
committerLinus Groh <mail@linusgroh.de>2023-03-25 21:42:50 +0000
commitee6843a13c22edd64b8e113cb3784021051c2f90 (patch)
treefe554d75055022e0c40e521b1438bcb508137fda
parent3323127db0c23ae2ca8e9e84e14d0b8e6612e683 (diff)
downloadserenity-ee6843a13c22edd64b8e113cb3784021051c2f90.zip
Meta: Add "gunzip" and "gzip" to lagom build
This makes it easy to compare the performance of Serenity's deflate implementation to the host system implementation. On my M1 Max MBP: % time gunzip -c \ /Users/thakis/Downloads/trace_bug.json.gz > /dev/null takes between 0.064s and 0.082s. % time Build/lagom/gunzip -c \ /Users/thakis/Downloads/trace_bug.json.gz > /dev/null on the other hand takes 4 seconds. (That .gz file is a 5.8M file -- the largest .gz file that happend to be in my Downloads folder.)
-rw-r--r--Meta/Lagom/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt
index d7d9349995..7885e55cfd 100644
--- a/Meta/Lagom/CMakeLists.txt
+++ b/Meta/Lagom/CMakeLists.txt
@@ -502,6 +502,12 @@ if (BUILD_LAGOM)
add_executable(gml-format ../../Userland/Utilities/gml-format.cpp)
target_link_libraries(gml-format LibCore LibGUI LibMain)
+ add_executable(gunzip ../../Userland/Utilities/gunzip.cpp)
+ target_link_libraries(gunzip LibCompress LibCore LibMain)
+
+ add_executable(gzip ../../Userland/Utilities/gzip.cpp)
+ target_link_libraries(gzip LibCompress LibCore LibMain)
+
if (ENABLE_LAGOM_LADYBIRD)
add_serenity_subdirectory(Ladybird)
endif()