mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-20 00:12:20 +00:00
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.)
This commit is contained in:
parent
3323127db0
commit
ee6843a13c
|
@ -502,6 +502,12 @@ if (BUILD_LAGOM)
|
||||||
add_executable(gml-format ../../Userland/Utilities/gml-format.cpp)
|
add_executable(gml-format ../../Userland/Utilities/gml-format.cpp)
|
||||||
target_link_libraries(gml-format LibCore LibGUI LibMain)
|
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)
|
if (ENABLE_LAGOM_LADYBIRD)
|
||||||
add_serenity_subdirectory(Ladybird)
|
add_serenity_subdirectory(Ladybird)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue