Update node to version@18 – Check performance impact

Similar to #260402 (closed) and #299406 (closed) we should check the performance impact of a node 16 -> node 18 upgrade, locally and in CI.

MR to bump the version in GitLab: !106898 (merged)


Local webpack performance script
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'

. $HOME/.dotfiles/submodules/asdf/asdf.sh
export WEBPACK_REPORT=true

function benchmark {
NODEJS_CHECK_SIGNATURES=no asdf install nodejs "$1"
asdf shell nodejs "$1"
echo "node version $(node --version)"
rm -rf tmp/cache
rm -rf node_modules
yarn install --frozen-lockfile
yarn run clean >/dev/null 2>/dev/null
echo "Cold cache webpack run:"
time yarn run webpack-prod >/dev/null 2>/dev/null
echo "Hot cache webpack run:"
time yarn run webpack-prod >/dev/null 2>/dev/null
}

benchmark 16.15.0
benchmark 18.12.1
Edited by Lukas Eipert