Build machines boasting
#1
I'd like people to contribute to this thread, telling us what their machine's specs are and how long it takes to build Cuberite on that machine (from scratch), plus what compiler they use. In the end, it might be a good benchmark for deciding what kind of hardware to get for upgrades (there are not too many compilation-related benchmarks in the real world).

The results
are in this Google Sheets document: https://docs.google.com/spreadsheets/d/1...sp=sharing



On Windows, use this script to measure the time (attached as timed_run.zip):
@echo off
echo Started: %time% > time.log
echo Cloning from git...
mkdir Cuberite
cd Cuberite
git clone --recurse-submodules https://github.com/cuberite/cuberite .
if errorlevel 1 goto Error
echo Cloned: %time% >> ..\time.log

echo Running CMake...
mkdir VS
cd VS
cmake -DBUILD_TOOLS=1 -DSELF_TEST=1 ..
if errorlevel 1 goto Error
echo CMaked: %time% >> ..\..\time.log

echo Building...
cmake --build .
if errorlevel 1 goto Error
cd ..\..
echo Built: %time% >> time.log
echo All done successfully
goto Finished

:Error
echo An error occurred, timings are invalid

:Finished

On Linux, try this script (courtesy of @paradise from Discord and @Mathias; attached as measure_time.zip):
#!/usr/bin/env bash

echo "Started: `date +%H:%M:%S`" > time.log
echo "Cloning from git..."
mkdir Cuberite
cd Cuberite
git clone --recurse-submodules https://github.com/cuberite/cuberite . || (echo \'An error occurred, timings are invalid\' && exit 1)
echo "Cloned: `date +%H:%M:%S`" >> ../time.log

echo "Running CMake..."
mkdir VS
cd VS
cmake -DBUILD_TOOLS=1 -DSELF_TEST=1 .. || (echo \'An error occurred, timings are invalid\' && exit 1)
echo "CMaked: `date +%H:%M:%S`" >> ../../time.log

echo "Building..."
MAKEFLAGS="" cmake --build . -j $(nproc) || (echo \'An error occurred, timings are invalid\' && exit 1)
cd ../..
echo "Built: `date +%H:%M:%S`" >> time.log
echo "All done successfully"


Attached Files
.zip   timed_run.zip (Size: 420 bytes / Downloads: 229)
.zip   measure_time.zip (Size: 456 bytes / Downloads: 229)
Reply
Thanks given by:


Messages In This Thread
Build machines boasting - by xoft - 01-12-2020, 09:21 PM
RE: Build machines boasting - by xoft - 01-12-2020, 10:21 PM
RE: Build machines boasting - by Greaper88 - 01-12-2020, 10:37 PM
RE: Build machines boasting - by xoft - 01-12-2020, 11:28 PM
RE: Build machines boasting - by Mathias - 01-13-2020, 03:50 AM
RE: Build machines boasting - by Seadragon91 - 01-14-2020, 02:43 PM
RE: Build machines boasting - by xoft - 01-15-2020, 07:45 PM
RE: Build machines boasting - by xoft - 01-15-2020, 10:04 PM
RE: Build machines boasting - by xoft - 01-15-2020, 10:19 PM



Users browsing this thread: 1 Guest(s)