[Update] Comparing the Graviton workers that became the default in the AWS Glue 6.1 release against x86, processing time and cost for a synthetic ETL were cut roughly in half

[Update] Comparing the Graviton workers that became the default in the AWS Glue 6.1 release against x86, processing time and cost for a synthetic ETL were cut roughly in half

We compared AWS Glue 6.1's new default Graviton workers with x86 on the same Spark job. Only the worker type changed, and a 400M-row synthetic ETL roughly halved both runtime and cost per run. Also covers caveats of 6.1's new defaults (up to 100 workers).
2026.12.01

This page has been translated by machine translation. View original

I'm Ishikawa from the Cloud Business Division. AWS Glue 6.1 has been released, and AWS Graviton-based workers are now available. I ran the same job on the previous x86 workers and on Graviton workers, compared processing time and cost, and checked the performance improvement.

https://aws.amazon.com/jp/about-aws/whats-new/2026/11/aws-glue-graviton-processors-lower-costs/

Workers powered by AWS Graviton processors have been added as a worker type in AWS Glue. According to the announcement, Apache Spark data integration jobs run up to 30% faster and cost 10% less than on x86-based workers. As a result, the cost per run is reduced by up to 34%. This reduction is in addition to the price reduction introduced with AWS Glue 6.0.

Graviton is available in all sizes of general-purpose (G type) and memory-optimized (R type) workers, and also in AWS Glue notebooks. You can migrate existing jobs just by changing the worker type, and the job logic stays the same. Also, from AWS Glue 6.1, Graviton becomes the default worker type.

Graviton workers are announced as available with AWS Glue 6.0 and later in all commercial Regions, the AWS GovCloud (US) Regions, and the China Regions.

https://docs.aws.amazon.com/glue/latest/dg/worker-types.html

https://aws.amazon.com/glue/pricing/

What is AWS Glue 6.1

On November 29, 2026, the same day as Graviton workers, AWS Glue 6.1 became generally available.

https://aws.amazon.com/jp/about-aws/whats-new/2026/11/aws-glue-61-lower-costs-lineage-iceberg/

According to the announcement, the main changes in AWS Glue 6.1 are as follows.

  • Graviton workers by default: 6.1 jobs run on Graviton workers with optimized auto scaling by default. Compared with AWS Glue 6.0 on x86 workers of the same size, existing pipelines are said to finish up to 35% faster and at up to 40% lower cost without changing job logic
  • Runtime updates: Updated to Apache Spark 4.1.3 and Python 3.14
  • Data lineage: Every 6.1 job sends OpenLineage-based lineage events to the AWS Glue Data Catalog for each table write
  • System tables: Lineage and job run metadata are exposed as read-only Apache Iceberg tables on Amazon S3 Tables, queryable from Amazon Athena, Amazon Redshift, and others
  • Incremental refresh of Iceberg materialized views: For projections, filters, inner joins, and aggregations such as SUM and COUNT, only changed data is processed to refresh the view
  • Governance: You can register approved user-defined functions, custom catalogs, and credential providers, and run them inside jobs that use fine-grained access control under AWS Lake Formation permissions

AWS Glue 6.1 is announced as available in all commercial Regions, the AWS GovCloud (US) Regions, and the China Regions. To migrate existing jobs, you can use the generative AI upgrade agent for Apache Spark in AWS Glue.

https://docs.aws.amazon.com/glue/latest/dg/migrating-version-61.html

This article covers only the AWS Glue 6.1 changes related to Graviton workers: the defaults (worker type and scaling profile). Lineage, system tables, materialized views, and so on are not covered. Also, the performance comparison in the second half compares x86 and Graviton workers on AWS Glue 6.0; I did not measure performance on 6.1.

What are AWS Glue Graviton workers

With AWS Glue 6.0 and later, G-type and R-type workers can run on either x86 or Graviton (arm64). To run on Graviton, append .GRAVITON to the worker type name (example: G.1X.GRAVITON). DPU, vCPU, memory, and disk are the same as for the x86 worker with the same name.

Category Graviton worker types
General purpose (G type) G.1X.GRAVITON, G.2X.GRAVITON, G.4X.GRAVITON, G.8X.GRAVITON, G.12X.GRAVITON, G.16X.GRAVITON
Memory optimized (R type) R.1X.GRAVITON, R.2X.GRAVITON, R.4X.GRAVITON, R.8X.GRAVITON

The documentation notes the following.

  • Only G.1X.GRAVITON and G.2X.GRAVITON can be used as Graviton workers for streaming jobs
  • Worker types without .GRAVITON (example: R.1X) run on x86
  • Native libraries that the job depends on must support arm64
  • Availability may differ by Region and account

https://docs.aws.amazon.com/glue/latest/dg/worker-types.html

Defaults for AWS Glue 6.1 and managed scaling profiles

In AWS Glue 6.1, a Spark job created without specifying WorkerType runs on G.1X.GRAVITON. If you change an existing job to 6.1, its configured worker type is kept as is. New jobs that contain native binaries built for x86 (.so files, native Python wheels, JNI libraries, etc.) must be rebuilt for aarch64 or must specify an x86 worker type.

https://docs.aws.amazon.com/glue/latest/dg/migrating-version-61.html

The managed scaling profile (--scaling-profile) added at the same time also affects worker values of new jobs. According to the documentation, if you specify neither WorkerType nor NumberOfWorkers for a new ETL job on AWS Glue 6.0 or later, --scaling-profile balanced is added automatically. If you specify no worker values at all, you get G.1X.GRAVITON with up to 100 workers.

https://docs.aws.amazon.com/glue/latest/dg/scaling-profile.html

In interactive sessions (notebooks), specify it with a magic such as %worker_type G.2X.GRAVITON.

https://docs.aws.amazon.com/glue/latest/dg/interactive-sessions-magics.html

Pricing

The unit prices for Asia Pacific (Tokyo) obtained through the Price List API are as follows (AWS Glue 6.0 and later). Graviton unit prices are set about 10% lower than x86.

Category x86 Graviton Graviton / x86
ETL job (DPU-Hour) $0.308 $0.277 0.899
ETL job, memory optimized (M-DPU-Hour) $0.364 $0.328 0.901
Interactive session (DPU-Hour) $0.308 $0.277 0.899

The unit prices in US East (Ohio), which I used for this test, were the same as in the table above. The costs below are calculated with these prices.

I found no Graviton entry for the Flex execution class price ($0.203 / DPU-Hour) in either Tokyo or Ohio. I did not test the combination of Flex and Graviton.

Trying it out

Prerequisites

  • An S3 bucket for testing (for scripts and result output)
  • Test environment
    • Region: US East (Ohio) us-east-2
    • AWS Glue 6.0 / 6.1
    • AWS CLI 2.42.6

In AWS CLI 2.42.6, the WorkerType values for AWS Glue included everything from G.1X.GRAVITON to R.8X.GRAVITON.

It wasn't available in the Tokyo Region yet

First, I tried creating a job in the Tokyo Region with AWS Glue 6.0 and G.1X.GRAVITON.

% aws glue create-job \
    --name glue-graviton-verify-a1-g60 \
    --role arn:aws:iam::123456789012:role/AWSGlueServiceRole-Studio \
    --glue-version 6.0 \
    --command Name=glueetl,ScriptLocation=s3://glue-graviton-verify-d4facceb-apne1/scripts/arch_check.py,PythonVersion=3 \
    --default-arguments '{"--output_path":"s3://glue-graviton-verify-d4facceb-apne1/out/"}' \
    --worker-type G.1X.GRAVITON \
    --number-of-workers 2 \
    --max-retries 0 \
    --timeout 10

aws: [ERROR]: An error occurred (InvalidInputException) when calling the CreateJob operation: Account not allowed to use G.1X.GRAVITON worker type

It returned Account not allowed to use G.1X.GRAVITON worker type, and the job could not be created. Specifying AWS Glue 6.1 also produced an error.

% aws glue create-job \
    --name glue-graviton-verify-a3-61-none \
    --role arn:aws:iam::123456789012:role/AWSGlueServiceRole-Studio \
    --glue-version 6.1 \
    --command Name=glueetl,ScriptLocation=s3://glue-graviton-verify-d4facceb-apne1/scripts/arch_check.py,PythonVersion=3 \
    --default-arguments '{"--output_path":"s3://glue-graviton-verify-d4facceb-apne1/out/"}' \
    --max-retries 0 \
    --timeout 10

aws: [ERROR]: An error occurred (InvalidInputException) when calling the CreateJob operation: Glue version: 6.1 is invalid

In the Management Console as well, filtering worker types by "GRAVITON" in the Tokyo Region showed "No matches found", and 6.1 was not among the Glue version choices.

At the same time (9 AM JST on November 30, 2026), I also checked the consoles for US East (N. Virginia) and US West (Oregon), and neither offered 6.1 or Graviton either. This is presumably the "availability may differ by Region and account" case mentioned in the documentation. In US East (Ohio), I could select 6.1 and Graviton, so I ran the rest of the test in the Ohio Region.

Checking Graviton and AWS Glue 6.1 defaults in the console

I opened a new job in the AWS Glue Studio Script editor and checked the Job details tab. The Worker type choices list x86 and Graviton side by side, such as G 1X and G 1X Graviton.

When I switched Glue version to Glue 6.1, the defaults changed as follows (I did not save it).

  • Worker type: G 1X Graviton
  • Scaling profile: Balanced
  • Maximum number of workers: 100

This matches the documentation: "new 6.1 jobs default to Graviton" and "up to 100 workers when no worker values are specified".

Checking default worker values via the API

Besides the console defaults, I checked how the CreateJob API fills in worker values. For each of Glue 6.0 and 6.1, I created jobs with the following 3 patterns (created only, not run).

  • No worker values specified
  • Only NumberOfWorkers specified (2)
  • Only NumberOfWorkers specified, with --scaling-profile disabled

For comparison, I also created a job on 6.0 with G.1X.GRAVITON explicitly specified. After creation, I retrieved each job's settings.

% aws glue batch-get-jobs --region us-east-2 \
    --job-names glue-graviton-verify-a1-g60 glue-graviton-verify-a3-60-none glue-graviton-verify-a3-60-nw glue-graviton-verify-a3-60-nw-dis glue-graviton-verify-a3-61-none glue-graviton-verify-a3-61-nw glue-graviton-verify-a3-61-nw-dis \
    --query 'Jobs[].[Name,GlueVersion,WorkerType,NumberOfWorkers,DefaultArguments."--scaling-profile"]' \
    --output table
----------------------------------------------------------------------------------
|                                  BatchGetJobs                                  |
+------------------------------------+------+----------------+------+------------+
|  glue-graviton-verify-a1-g60       |  6.0 |  G.1X.GRAVITON |  2   |  None      |
|  glue-graviton-verify-a3-60-none   |  6.0 |  G.1X          |  10  |  None      |
|  glue-graviton-verify-a3-60-nw     |  6.0 |  G.1X          |  2   |  None      |
|  glue-graviton-verify-a3-60-nw-dis |  6.0 |  G.1X          |  2   |  disabled  |
|  glue-graviton-verify-a3-61-none   |  6.1 |  G.1X.GRAVITON |  100 |  balanced  |
|  glue-graviton-verify-a3-61-nw     |  6.1 |  G.1X.GRAVITON |  2   |  balanced  |
|  glue-graviton-verify-a3-61-nw-dis |  6.1 |  G.1X.GRAVITON |  2   |  disabled  |
+------------------------------------+------+----------------+------+------------+

The results are summarized in the diagram below. Pink indicates x86 workers and green indicates Graviton workers. Dotted arrows show the result when the same specification is used with AWS Glue 6.1.

What I confirmed is as follows.

  • On AWS Glue 6.1, both a job with no worker values and a job with only NumberOfWorkers became G.1X.GRAVITON
  • On 6.1, a job with no worker values became G.1X.GRAVITON × 100 workers with --scaling-profile balanced
  • On AWS Glue 6.0, omitting WorkerType gave G.1X (x86) as before
  • In this check, new jobs on AWS Glue 6.0 did not get --scaling-profile. The documentation says balanced is added to new ETL jobs on 6.0 and later, so this result differs from the description

A 6.1 job with no worker values would scale up to 100 workers when run, so I deleted it without running it.

Comparing x86 and Graviton performance

Next, I ran a synthetic ETL with CPU and shuffle load on x86 and Graviton, and compared processing time and cost. The input data is generated with spark.range, so S3 read performance is not part of the comparison.

Step ② in purple is the step where sha2 was replaced with xxhash64 in the isolation test in the second half.

The comparison conditions are as follows.

  • AWS Glue 6.0, fixed at 10 workers (Scaling profile: Disabled)
  • Created the x86 job in the GUI, duplicated it with "Clone job" from Actions in the job list, and changed only Worker type to G 1X Graviton
  • Processing time measured inside the script (from generation to completion of the S3 write)
  • Run order alternated: Graviton → x86 → x86 → Graviton → Graviton → x86, 3 runs each

The only differences between the two job configurations are the job name, the script file name, and WorkerType.

% diff <(jq -S 'del(.Job.CreatedOn,.Job.LastModifiedOn)' bench_x86_job.json) <(jq -S 'del(.Job.CreatedOn,.Job.LastModifiedOn)' bench_graviton_job.json)
7c7
<       "ScriptLocation": "s3://glue-graviton-verify-d4facceb-use2/scripts/glue-graviton-verify-bench-x86.py"
---
>       "ScriptLocation": "s3://glue-graviton-verify-d4facceb-use2/scripts/glue-graviton-verify-bench-graviton.py"
35c35
<     "Name": "glue-graviton-verify-bench-x86",
---
>     "Name": "glue-graviton-verify-bench-graviton",
39c39
<     "WorkerType": "G.1X"
---
>     "WorkerType": "G.1X.GRAVITON"

I ran each job with the Run button. The run results can be checked in the Runs tab of the console.

The results from get-job-runs are below. This output also includes the isolation runs described later (around 15:00) and the first run used to adjust the row count (11:13, 200 million rows). The 6 runs started between 11:18 and 12:01 were used for the comparison.

% aws glue get-job-runs --region us-east-2 --job-name glue-graviton-verify-bench-x86 \
    --query 'JobRuns[].[Id,JobRunState,WorkerType,ExecutionTime,DPUSeconds,StartedOn]' --output table
---------------------------------------------------------------------------------------------------------------------------------------------------
|                                                                   GetJobRuns                                                                    |
+----------------------------------------------------------------------+------------+-------+------+---------+------------------------------------+
|  jr_c2a8fa6e507477d54fa5c82273440fcab75fd1641c724f608529652e9e21b85a |  SUCCEEDED |  G.1X |  287 |  2875.0 |  2026-11-30T15:41:58.571000+09:00  |
|  jr_a34db98896c55a09027b4bcd9798c98adb5f4eb64e8afe0fb97ada091e5b91e9 |  SUCCEEDED |  G.1X |  270 |  2708.0 |  2026-11-30T15:28:53.633000+09:00  |
|  jr_70ec4a4c77c05d5cc58cdd013348229db08c6e64815e19140b451f40f225bbbe |  SUCCEEDED |  G.1X |  276 |  2760.0 |  2026-11-30T12:01:26.791000+09:00  |
|  jr_4941618ad7a9e3e490e7de637a73b5e3259c7db2f0af6a2fc354a5d5b784ebb1 |  SUCCEEDED |  G.1X |  283 |  2834.0 |  2026-11-30T11:27:09.148000+09:00  |
|  jr_e97960ac2dd02b3bd4ae8fb817b365e634cdbb156455db17b9ce3ac0773a18c6 |  SUCCEEDED |  G.1X |  291 |  2918.0 |  2026-11-30T11:21:38.478000+09:00  |
|  jr_8efd140f5ee2b47b4a300cefcab4f504f19cac0f1b052ba2e299f39740d62d4d |  SUCCEEDED |  G.1X |  156 |  1569.0 |  2026-11-30T11:13:39.037000+09:00  |
+----------------------------------------------------------------------+------------+-------+------+---------+------------------------------------+
% aws glue get-job-runs --region us-east-2 --job-name glue-graviton-verify-bench-graviton \
    --query 'JobRuns[].[Id,JobRunState,WorkerType,ExecutionTime,DPUSeconds,StartedOn]' --output table
------------------------------------------------------------------------------------------------------------------------------------------------------------
|                                                                        GetJobRuns                                                                        |
+----------------------------------------------------------------------+------------+----------------+------+---------+------------------------------------+
|  jr_338a1271c305c494cb966b2d9e89cf8975aa3a3116b1b10fdc92f49df92922c3 |  SUCCEEDED |  G.1X.GRAVITON |  161 |  1618.0 |  2026-11-30T15:38:03.316000+09:00  |
|  jr_7526c01518bb5511ef07f2f31110ff8124ac1959780ae293f8b97ee7c20d5fcb |  SUCCEEDED |  G.1X.GRAVITON |  148 |  1488.0 |  2026-11-30T15:34:37.740000+09:00  |
|  jr_49937efc8cb098ab4a257ce918aebb5d7ed3feff340bfa8b7243fa209a0dfc7a |  SUCCEEDED |  G.1X.GRAVITON |  166 |  1662.0 |  2026-11-30T11:58:08.035000+09:00  |
|  jr_195d7f24a6c21fc9dd9664f004e8423883306e6b5fb55a5f38c6f11d945ddb34 |  SUCCEEDED |  G.1X.GRAVITON |  165 |  1654.0 |  2026-11-30T11:54:37+09:00         |
|  jr_e370aca2717d120fad177ec3ca83b57a304582104c0af4873a6082e775197b6c |  SUCCEEDED |  G.1X.GRAVITON |  146 |  1462.0 |  2026-11-30T11:18:34.823000+09:00  |
+----------------------------------------------------------------------+------------+----------------+------+---------+------------------------------------+

Even for fixed-size runs, DPUSeconds had values, and they nearly matched ExecutionTime × 10 workers. Together with the processing time measured inside the script, the results of all 6 runs are summarized in the table. Cost is an estimate calculated from DPUSeconds and the unit prices above.

Run order Worker Processing time (s) ExecutionTime (s) DPUSeconds Estimated cost
1 Graviton 105.53 146 1,462 $0.1125
2 x86 207.38 291 2,918 $0.2497
3 x86 219.69 283 2,834 $0.2425
4 Graviton 102.08 165 1,654 $0.1273
5 Graviton 104.33 166 1,662 $0.1279
6 x86 208.82 276 2,760 $0.2361

The averages of the 3 runs each are as follows.

Metric x86 Graviton Graviton / x86
Processing time 212.0 s 104.0 s 0.491 (50.9% shorter)
ExecutionTime 283.3 s 159.0 s 0.561 (43.9% shorter)
Estimated cost per run $0.243 $0.123 0.505 (49.5% lower)

For this workload, Graviton's processing time was about half of x86's. This exceeds the announcement's "up to 30% faster" and "up to 34% cost reduction".

Isolating the cause (re-measuring without sha2)

Because the difference was larger than the announced values, I tried to isolate the cause. This workload computes sha2 (SHA-256) for every row, so I checked whether a difference in SHA-256 computation speed might be having an effect.

I added a --hash_func argument to the script; when xxhash is specified, it uses a 64-character hex string made by concatenating four xxhash64 values instead of sha2. The number of distinct aggregation keys (first 12 characters) is almost the same as with sha2. I also made it output CPU flags and JVM information.

def hash64hex(col):
    """sha2 の代わりに使う 64 文字の 16 進文字列(xxhash64 を 4 つ連結)"""
    parts = [F.lpad(F.hex(F.xxhash64(col, F.lit(i))), 16, "0") for i in range(4)]
    return F.concat(*parts)

hash_input = F.concat_ws("|", F.col("email"), F.col("category").cast("string"))
customer_hash = F.sha2(hash_input, 256) if HASH_FUNC == "sha2" else hash64hex(hash_input)

::: description scripts/bench_etl.py shown above

"""x86 / Graviton 比較用の合成 ETL ベンチマーク

イベント生成 → 匿名化(sha2)→ 顧客マスタとの結合 → 2 段階集計 → 順位付け → S3 へ Parquet 出力
入力は spark.range で生成するため、S3 読み込み性能は比較対象外。
"""
import sys
import json
import platform
import time
from datetime import datetime, timezone

import boto3
from awsglue.utils import getResolvedOptions
from awsglue.context import GlueContext
from pyspark.context import SparkContext
from pyspark.sql import functions as F
from pyspark.sql.window import Window

args = getResolvedOptions(sys.argv, ["JOB_NAME", "output_path", "rows", "customers", "partitions"])
# --JOB_RUN_ID は getResolvedOptions が予約引数として解釈するため、戻り値から取り出す
job_run_id = args.get("JOB_RUN_ID", "unknown")

N = int(args["rows"])
K = int(args["customers"])
P = int(args["partitions"])
# 匿名化に使うハッシュ関数(省略時は sha2)。xxhash は sha2 を除いた切り分け用
HASH_FUNC = getResolvedOptions(sys.argv, ["hash_func"])["hash_func"] if "--hash_func" in sys.argv else "sha2"
if HASH_FUNC not in ("sha2", "xxhash"):
    raise ValueError(f"unsupported --hash_func: {HASH_FUNC}")

sc = SparkContext.getOrCreate()
glue_context = GlueContext(sc)
spark = glue_context.spark_session

bucket, _, prefix = args["output_path"].replace("s3://", "").partition("/")
prefix = prefix.rstrip("/")
out_data = f"s3://{bucket}/{prefix}/data/{args['JOB_NAME']}/{job_run_id}/"

t_start = time.time()

# 1. イベント生成
events = (
    spark.range(0, N, 1, P)
    .withColumn("customer_id", F.pmod(F.xxhash64("id"), F.lit(K)))
    .withColumn("event_date", F.expr("date_add(DATE'2026-01-01', CAST(pmod(id, 90) AS INT))"))
    .withColumn("category", F.pmod(F.xxhash64(F.col("id") * 7), F.lit(50)).cast("int"))
    .withColumn("amount", (F.pmod(F.xxhash64(F.col("id") * 13), F.lit(100000)) / 100.0))
)

# 2. 匿名化・文字列加工
def hash64hex(col):
    """sha2 の代わりに使う 64 文字の 16 進文字列(xxhash64 を 4 つ連結)"""
    parts = [F.lpad(F.hex(F.xxhash64(col, F.lit(i))), 16, "0") for i in range(4)]
    return F.concat(*parts)

hash_input = F.concat_ws("|", F.col("email"), F.col("category").cast("string"))
customer_hash = F.sha2(hash_input, 256) if HASH_FUNC == "sha2" else hash64hex(hash_input)
events = (
    events.withColumn(
        "email", F.concat_ws("", F.lit("user"), F.col("customer_id").cast("string"), F.lit("@example.com"))
    )
    .withColumn("customer_hash", customer_hash)
    .withColumn("hash_prefix", F.substring("customer_hash", 1, 12))
    .withColumn("amount_band", F.when(F.col("amount") >= 500, "high").when(F.col("amount") >= 100, "mid").otherwise("low"))
    .drop("email")
)

# 3. 顧客マスタ生成と結合(ブロードキャスト)
customers = (
    spark.range(0, K)
    .withColumnRenamed("id", "customer_id")
    .withColumn("region", F.concat(F.lit("R"), F.pmod(F.col("customer_id"), F.lit(12)).cast("string")))
    .withColumn("segment", F.pmod(F.xxhash64(F.col("customer_id")), F.lit(5)).cast("int"))
)
joined = events.join(F.broadcast(customers), "customer_id")

# 4. 2 段階集計
agg1 = joined.groupBy("event_date", "region", "hash_prefix").agg(
    F.count("*").alias("cnt"),
    F.sum("amount").alias("total"),
    F.max("amount").alias("max_amount"),
    F.sum(F.when(F.col("amount_band") == "high", 1).otherwise(0)).alias("high_cnt"),
)
daily = agg1.groupBy("event_date", "region").agg(
    F.sum("total").alias("day_total"),
    F.count("*").alias("customers"),
)

# 5. 順位付け(日付 × 地域ごとの上位 100)
w = Window.partitionBy("event_date", "region").orderBy(F.col("total").desc())
ranked = agg1.withColumn("rnk", F.row_number().over(w)).filter(F.col("rnk") <= 100)
final = ranked.join(daily, ["event_date", "region"]).withColumn("share", F.col("total") / F.col("day_total"))

final.write.mode("overwrite").parquet(out_data)
t_end = time.time()

out_rows = spark.read.parquet(out_data).count()

def cpu_sha_flags():
    """/proc/cpuinfo の flags(x86)または Features(arm)から SHA 関連の項目を返す"""
    try:
        with open("/proc/cpuinfo") as f:
            for line in f:
                k, _, v = line.partition(":")
                if k.strip() in ("flags", "Features"):
                    return sorted(x for x in v.split() if x.startswith("sha"))
    except Exception as e:  # noqa: BLE001
        return [f"error: {e}"]
    return []

def executor_sha_flags(_):
    yield (platform.machine(), tuple(cpu_sha_flags()))

def jvm_info():
    jvm = sc._jvm
    info = {
        "java.version": jvm.java.lang.System.getProperty("java.version"),
        "java.vm.name": jvm.java.lang.System.getProperty("java.vm.name"),
        "os.arch": jvm.java.lang.System.getProperty("os.arch"),
    }
    try:
        cls = jvm.java.lang.Class.forName("com.sun.management.HotSpotDiagnosticMXBean")
        mx = jvm.java.lang.management.ManagementFactory.getPlatformMXBean(cls)
        for opt in ("UseSHA", "UseSHA256Intrinsics"):
            info[opt] = mx.getVMOption(opt).getValue()
    except Exception as e:  # noqa: BLE001
        info["vm_option_error"] = str(e)[:200]
    return info

result = {
    "job_name": args["JOB_NAME"],
    "job_run_id": job_run_id,
    "collected_at": datetime.now(timezone.utc).isoformat(),
    "machine": platform.machine(),
    "spark_version": spark.version,
    "rows": N,
    "customers": K,
    "partitions": P,
    "shuffle_partitions": spark.conf.get("spark.sql.shuffle.partitions"),
    "aqe": spark.conf.get("spark.sql.adaptive.enabled"),
    "hash_func": HASH_FUNC,
    "processing_seconds": round(t_end - t_start, 2),
    "output_rows": out_rows,
    "driver_cpu_sha_flags": cpu_sha_flags(),
    "executor_cpu_sha_flags": [
        [m, list(f)] for m, f in sorted(set(sc.parallelize(range(36), 36).mapPartitions(executor_sha_flags).collect()))
    ],
    "driver_jvm": jvm_info(),
}
body = json.dumps(result, ensure_ascii=False, indent=2)
print(body)
key = f"{prefix}/results/{args['JOB_NAME']}/{job_run_id}.json"
boto3.client("s3").put_object(Bucket=bucket, Key=key, Body=body.encode("utf-8"))
print(f"written: s3://{bucket}/{key}")

:::

Without changing the job's default parameters, I chose "Run with parameters" from Actions in the console and specified xxhash for --hash_func for those runs only. The run order was x86 → Graviton → Graviton → x86, 2 runs each.

The Graviton output is as follows (excerpt).

% aws s3 cp s3://glue-graviton-verify-d4facceb-use2/bench/results/glue-graviton-verify-bench-graviton/jr_7526c01518bb5511ef07f2f31110ff8124ac1959780ae293f8b97ee7c20d5fcb.json -
{
  ...
  "machine": "aarch64",
  "rows": 400000000,
  "hash_func": "xxhash",
  "processing_seconds": 99.39,
  "output_rows": 108000,
  "driver_cpu_sha_flags": [
    "sha1",
    "sha2",
    "sha3",
    "sha512"
  ],
  "driver_jvm": {
    "java.version": "17.0.21",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "os.arch": "aarch64",
    "UseSHA": "true",
    ...
  }
}

The x86 output is as follows (excerpt).

% aws s3 cp s3://glue-graviton-verify-d4facceb-use2/bench/results/glue-graviton-verify-bench-x86/jr_a34db98896c55a09027b4bcd9798c98adb5f4eb64e8afe0fb97ada091e5b91e9.json -
{
  ...
  "machine": "x86_64",
  "rows": 400000000,
  "hash_func": "xxhash",
  "processing_seconds": 197.76,
  "output_rows": 108000,
  "driver_cpu_sha_flags": [],
  "driver_jvm": {
    "java.version": "17.0.21",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "os.arch": "amd64",
    "UseSHA": "true",
    ...
  }
}

Looking at the CPU flags, Graviton has sha1, sha2, sha3, and sha512, while x86 has no SHA-related entries. The JDK is OpenJDK 17.0.21 on both.

The comparison of processing time (average) for the sha2 and xxhash versions is as follows.

Hash x86 Graviton Graviton / x86
sha2 (3 runs each) 212.0 s 104.0 s 0.491
xxhash (2 runs each) 207.9 s 98.5 s 0.474

Even without sha2, x86 processing time barely changed, and the roughly 2x difference from Graviton remained. The main cause of the difference this time was not the SHA-256 computation. I did not isolate the cause any further in this test.

Discussion

  • For this workload, the difference exceeded the announced values: In the synthetic ETL (400 million rows, 10 workers), Graviton's ExecutionTime was about 44% shorter than x86, and the estimated cost per run was about 50% lower. However, this is the result of running one synthetic workload 3 times each in one day (2 times each for the isolation test). Results may differ for real jobs that include S3 reads or external connections.
  • What is being compared is the whole worker environment: The x86 workers' CPU was an Intel Xeon Platinum 8259CL. This comparison is of the entire worker environment provided by AWS Glue, not only the CPU architecture. I confirmed that SHA-256 computation is not the main cause of the difference, but I have not identified any other cause.
  • Migration only required changing the worker type: The PySpark script ran on Graviton without changes. If you depend on native libraries (wheels installed via --additional-python-modules, JNI libraries from --extra-jars, etc.), check beforehand whether they support arm64.
  • Be careful with the AWS Glue 6.1 defaults: If you create a job on 6.1 without specifying worker values, it is set to G.1X.GRAVITON with up to 100 workers. For jobs managed with CloudFormation or Terraform, explicitly specifying WorkerType, NumberOfWorkers, and --scaling-profile helps avoid unintended settings.
  • The AWS Glue 6.0 default differed from the documentation: The documentation says --scaling-profile balanced is added to new ETL jobs on 6.0 and later, but it was not added to new 6.0 jobs this time. Without a worker type on 6.0, the job was also x86 (G.1X).
  • Check the available Regions and accounts beforehand: As of the morning of November 30, 2026, in the account I tested, Graviton and 6.1 could not be selected in Tokyo, N. Virginia, or Oregon, but could be selected in Ohio. You can check this in the worker type choices in the console.
  • What I did not test: R-type and larger workers, streaming jobs, interactive sessions, and combinations with the Flex execution class were not tested.

Conclusion

AWS Glue Graviton workers worked just by changing the worker type to G.1X.GRAVITON or similar for jobs on AWS Glue 6.0 and later. In this synthetic ETL, processing time was about half and the estimated cost per run was also about half compared with x86. Cost is the product of DPU seconds and the unit price, so on top of the 10% lower unit price, the shorter run time also reduced DPU seconds.

If you operate AWS Glue 6.0 jobs, first check native library arm64 support, then change the worker type of a development job to Graviton and compare processing time and DPUSeconds. If you are migrating to AWS Glue 6.1, I recommend specifying worker values explicitly, bearing in mind that the default for new jobs is Graviton with up to 100 workers.

The cost of running Glue jobs in this test was an estimated $1.98 in total.

https://dev.classmethod.jp/articles/20261130-aws-glue-61/

https://dev.classmethod.jp/articles/20261130-aws-glue-data-catalog-lineage/

https://dev.classmethod.jp/articles/20261130-aws-glue-graviton-processors-lower-costs/

https://dev.classmethod.jp/articles/20261130-glue-data-catalog-business-context/

Share this article

AWSのお困り事はクラスメソッドへ