Skip to content

Add benchmarks and optimize config/build targets#6780

Merged
waruqi merged 14 commits intodevfrom
opti
Sep 9, 2025
Merged

Add benchmarks and optimize config/build targets#6780
waruqi merged 14 commits intodevfrom
opti

Conversation

@waruqi
Copy link
Member

@waruqi waruqi commented Sep 6, 2025

Config targets

macOS

Before optimization

ruki:xmake ruki$ xrepo env -b "cmake,ninja,meson" xmake l ./tests/run.lua config_targets
> 1 test(s) found
>> [1/1]: testing tests/benchmarks/config_targets ...
config targets/1k: xmake: 2372 ms
config targets/1k: cmake/ninja: 2187 ms
config targets/1k: cmake/makefile: 6229 ms
config targets/1k: meson: 3484 ms
> 1 test(s) succeed

After optimization

ruki:xmake ruki$ xrepo env -b "cmake,ninja,meson" xmake l ./tests/run.lua config_targets
> 1 test(s) found
>> [1/1]: testing tests/benchmarks/config_targets ...
config targets/1k: xmake: 2159 ms
config targets/1k: cmake/default: 5883 ms
config targets/1k: cmake/ninja: 2222 ms
config targets/1k: cmake/makefile: 6097 ms
config targets/1k: meson: 3524 ms
> 1 test(s) succeed

Windows

Before optimization

PS D:\projects\personal\xmake> xrepo env -b "msvc,cmake,ninja,meson" xmake l .\tests\run.lua config_targets
> 1 test(s) found
>> [1/1]: testing tests\benchmarks\config_targets ...
config targets/1k: xmake:  <-------------------------------------- stuck
> 1 test(s) succeed

After optimization

PS D:\projects\personal\xmake> xrepo env -b "msvc,cmake,ninja,meson" xmake l .\tests\run.lua config_targets
> 1 test(s) found
>> [1/1]: testing tests\benchmarks\config_targets ...
config targets/1k: xmake: 4047 ms
config targets/1k: cmake/default: 22907 ms
config targets/1k: cmake/ninja: 5859 ms
config targets/1k: meson: 7469 ms
> 1 test(s) succeed

#6775

@waruqi waruqi added this to the v3.0.3 milestone Sep 6, 2025
@waruqi
Copy link
Member Author

waruqi commented Sep 7, 2025

Build targets

macOS

ruki:xmake ruki$ xrepo env -b "cmake,ninja,meson" xmake l ./tests/run.lua build_targets
> 1 test(s) found
>> [1/1]: testing tests/benchmarks/build_targets ...
build targets/30: xmake: 4690 ms
build targets/30: cmake/default: 31461 ms
build targets/30: cmake/ninja: 7490 ms
build targets/30: cmake/makefile: 32648 ms
build targets/30: meson: 16120 ms
> 1 test(s) succeed

Windows

PS D:\projects\personal\xmake> xrepo env -b "msvc,cmake,ninja,meson" xmake l .\tests\run.lua build_targets
> 1 test(s) found
>> [1/1]: testing tests\benchmarks\build_targets ...
build targets/30: xmake: 7875 ms
build targets/30: cmake/default: 77016 ms
build targets/30: cmake/ninja: 15594 ms
build targets/30: meson: 15016 ms
> 1 test(s) succeed

@waruqi waruqi marked this pull request as ready for review September 7, 2025 15:14
@waruqi waruqi merged commit 5166d71 into dev Sep 9, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant