BuildJetはRyzen 9 5950Xでカスタムランナーをホストしている

はじめに

BuildJetはサーバ用CPUではなくゲーム用CPUを使うことによりシングルコア性能を上げているとアピール*1しています。

実際にはどのCPUを使っているのか調べました。

結論

BuildJetは2023年8月現在Ryzen 9 5950Xを使っています。

またGitHub ActionsはIntel(R) Xeon(R) CPU E5-2673 v4を使っています。

lscpuは以下のリンクから見てください。

https://github.com/Azuki-bar/hello-buildjet/actions/runs/5750941638

どうやって調べたの

lscpuをmatrixで動かしてsummaryに表示しました。

name: show lscpu
on:
  push:

permissions:
  contents: read
jobs:
  build:
    name: Upload lscpu Result
    strategy:
      fail-fast: false
      matrix:
        runs-on:
          - "ubuntu-latest"
          - "buildjet-2vcpu-ubuntu-2204"
          - "buildjet-4vcpu-ubuntu-2204"
          - "buildjet-8vcpu-ubuntu-2204"
          - "buildjet-16vcpu-ubuntu-2204"
          - "buildjet-32vcpu-ubuntu-2204"
          - "buildjet-2vcpu-ubuntu-2204-arm"
          - "buildjet-4vcpu-ubuntu-2204-arm"
          - "buildjet-8vcpu-ubuntu-2204-arm"
          - "buildjet-16vcpu-ubuntu-2204-arm"
          - "buildjet-32vcpu-ubuntu-2204-arm"
        index: 
          - "1"
          - "2"
          - "3"
    runs-on: ${{ matrix.runs-on }}
    steps:
      - uses: actions/github-script@v6
        with:
          script: |
            const { execSync } = require('child_process')
            const body = [
              "$ lscpu",
              execSync('lscpu').toString(),
            ].join("\n")
            await core.summary
              .addHeading("${{ matrix.runs-on }} - ${{ matrix.index }}")
              .addCodeBlock(body)
              .write()

https://github.com/Azuki-bar/hello-buildjet/blob/5e546aab07398be0a912620ad029f2ff80ab4cb8/.github/workflows/lscpu.yaml

この2つはどんなCPUなの?

BuildJetが提供するランナーのCPU

Ryzen 9 5950Xはベースクロックが 3.4GHzで最大4.9GHzまで上がります。2020年11月に発売されたCPUです。

Ryzen 9 5950Xはデスクトップ用のCPUで秋葉原でも購入することができます。

GitHub Actionsが提供するHosted RunnerのCPU

Xeon(R) CPU E5-2673 v4はベースクロックが2.3GHzで最大3.3GHzまで上がります。2020年4Qに発売されたCPUです。

Xeonということからもサーバ用CPUであることが分かります。

https://www.cpubenchmark.net/cpu.php?cpu=Intel+Xeon+E5-2673+v4+%40+2.30GHz&id=2888

とここまで書きましたがBuildJetが記事を出しているので参考にしてください。

buildjet.com

まとめ

詳しいスペックはPassmarkが出している比較表を参照してください。

www.cpubenchmark.net

感想(余談)

BuildJetとGitHub Actions Hosted Runnerの性能差はサーバ用とゲーミング用というより年代の違いのように思えます。