Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Wall clock in maven build

Tags:

java

maven

build

When I build my project using threads

i.e mvn -T 4 install -Dmaven.test.skip=true

I am getting like

Total Time: 10:17.623s (Wall Clock)

What is meant by Wall clock here? When I build normally I am not getting that word. I searched, but I am unable to find the information.

Thanks in advance.

like image 424
PSR Avatar asked Apr 15 '16 09:04

PSR


1 Answers

By default (without -T 4), Maven builds all modules sequentially rather than in parallel. So you only have one process, which (in your example) takes 40s.

You start the build with 4 threads, so the total time of 40s gets divided by 4 threads, so each thread runs for 10s.

The total CPU time stays the same (40s), but the time that passed for YOU is only 10s + some overhead for parallelization. It's the time that you see when you look on your clock on the wall, therefore it's called Wall-Clock time.

like image 122
user3774337 Avatar answered Sep 20 '22 19:09

user3774337