Ask HN: What's the compile time of your project?

4 points by osigurdson ↗ HN
10 minutes for me

11 comments

[ 2.0 ms ] story [ 33.2 ms ] thread
15-40 minutes depending on what tests are run/skipped (the integration tests are pretty numerous/slow)
About 1.5 minutes for the build which is Vue 2 + Vuetify + Vite.

Our e2e test with Cypress take about 1.5 hours, but with parallelisation we get this down to about 10 minutes, half of which is setting up the Docker environment.

A minute? But build time is much longer (packaging, tests, etc.)
The first three replies are about build and tests times. In case you are interested into truly compile times, mine are zero because all my customers are using interpreted languages now. I had one with Elixir but we rarely compiled all the project from scratch. The build server did though but I don't have access to the logs now. It was subjectively pretty slow. Tests were much slower.
I was mostly interested in build times. My test suite normally takes about 12-16 hours to run. Running all tests takes a few days.
Less than half a second for compilation, per target os+architecture. Test suites ofc take a little longer if there's a network dependency.

Golang ;)

How many LOC?
> find . -name "*.go" | xargs wc - l;

25875642 total

(Technically, some parts of the application are embedded via `//go:embed`, and their contents decompressed and deserialized when the binary is started via `init()` methods; but those are not included in the wc -l command because they're embedded as `.json.gz` files (and ofc presorted so gzip is much more efficient).

lexical passes duration: 0 min(s), 0 sec(s), 79 msec(s)

semantic passes duration: 0 min(s), 0 sec(s), 272 msec(s)

irgen pass duration: 0 min(s), 2 sec(s), 431 msec(s)

linking duration: 0 min(s), 0 sec(s), 70 msec(s)

for 25kslocs.

Once worked on a project that was regularly compiled by each developer/tester on their respective company laptops. The laptops had a weird mix of "security" software that "battled" each other in the background. Took ca. 25 minutes to compile. For fun a colleague compiled it on some project server, took less than a minute. Everyone in the department was furious when they found out.
Angular 20 secs debug, 2-3 mins with minification

And server uses esbuild, happens under a second