Skip to content

xmake3 config 1k target so slow #6775

@star-hengxing

Description

@star-hengxing

Xmake Version

dev

Operating System Version and Architecture

windows 10

Describe Bug

$ xrepo env -b "msvc,cmake,ninja" python test_performance.py
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.44.35215
1000 target
==================================================

=== Testing XMake ===
Running: xmake config

=== Testing CMake ===
Running: cmake .. -G Ninja

=== Testing Meson ===
Running: meson setup build_meson

==================================================
==================================================
--------------------------------------------------
XMake      87.78      87.78      87.78
CMake      2.73       2.73       2.73
Meson      3.89       3.89       3.89

CMake (2.73s)

Expected Behavior

N/A

Project Configuration

for i = 1, 1000 do
    target("test" .. i)
        set_kind("binary")
        add_files("src/main.cpp")
end

Additional Information and Error Logs

xmake 2.9.9

XMake      30.63      30.63      30.63
CMake      2.86       2.86       2.86
Meson      4.13       4.13       4.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions