Skip to content

dotnet build is slow for simple projects #33741

Open
@agocke

Description

@agocke

When talking with a customer, they mentioned that they tried C# but weren't interested in continuing because it took >2 seconds to build "hello world."

On my machine:

$ time dotnet build -t:rebuild

real    0m1.752s
user    0m2.240s
sys     0m0.229s

Some other languages:

Go

$ time go build main.go

real    0m0.137s
user    0m0.140s
sys     0m0.056s

Rust

$ time cargo build
   Compiling hello_cargo v0.1.0 (/home/andy/tmp/hellogo/cargo/hello_cargo)
    Finished dev [unoptimized + debuginfo] target(s) in 0.34s

real    0m0.376s
user    0m0.255s
sys     0m0.056s

Maven

$ time mvn compile -q

real    0m0.985s
user    0m3.108s
sys     0m0.382s

Java directly

andy@angocke-dev3  ~/tmp/hellogo/java/my-app/src/main/java/com/mycompany/app
$ time javac App.java

real    0m0.331s
user    0m0.837s
sys     0m0.058s

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions