Skip to content

feat: scaffold Windows 7-zip benchmark - #7038

Open
amarkdotdev wants to merge 2 commits into
GoogleCloudPlatform:masterfrom
amarkdotdev:feat/windows-seven-benchmark-5250
Open

feat: scaffold Windows 7-zip benchmark#7038
amarkdotdev wants to merge 2 commits into
GoogleCloudPlatform:masterfrom
amarkdotdev:feat/windows-seven-benchmark-5250

Conversation

@amarkdotdev

Copy link
Copy Markdown

Summary

  • Add seven_benchmark.py scaffold with BENCHMARK_NAME and handler stubs

Fixes #5250

Test plan

  • Verified benchmark module imports

Fixes GoogleCloudPlatform#5250

Signed-off-by: Aaron <amark@g.jct.ac.il>

FLAGS = flags.FLAGS

BENCHMARK_NAME = 'seven_benchmark'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: seven_zip_benchmark


BENCHMARK_NAME = 'seven_benchmark'
BENCHMARK_CONFIG = """
seven_benchmark:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: seven_zip_benchmark


from absl import flags
from perfkitbenchmarker import configs
from perfkitbenchmarker import vm_util

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused.


def Prepare(benchmark_spec):
del benchmark_spec
return []

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


def Cleanup(benchmark_spec):
del benchmark_spec
return []

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Aaron <amark@g.jct.ac.il>
@amarkdotdev

Copy link
Copy Markdown
Author

renamed to seven_zip_benchmark, dropped the unused import, and fixed Prepare/Cleanup signatures

Comment on lines +1 to +46
# Copyright 2026 PerfKitBenchmarker Authors. All Rights Reserved.
"""7-Zip LZMA benchmark for Windows."""

from absl import flags
from perfkitbenchmarker import configs

FLAGS = flags.FLAGS

BENCHMARK_NAME = 'seven_zip_benchmark'
BENCHMARK_CONFIG = """
seven_zip_benchmark:
description: Runs the 7-Zip LZMA benchmark on Windows.
vm_groups:
default:
vm_spec:
GCP:
machine_type: n1-standard-4
zone: us-central1-b
image: windows-2022
AWS:
machine_type: m5.xlarge
zone: us-east-1
image: windows-2022
Azure:
machine_type: Standard_D4s_v5
zone: eastus
image: windows-2022
vm_count: 1
"""


def GetConfig(user_config):
return configs.LoadConfig(BENCHMARK_CONFIG, user_config, BENCHMARK_NAME)


def Prepare(benchmark_spec):
del benchmark_spec


def Run(benchmark_spec):
del benchmark_spec
return []


def Cleanup(unused_benchmark_spec):
pass

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit I don't know if you ran the linter yet but it should complain on 'Final newline missing'. Need 1 more newline.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls make sure the linter passes :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Windows compression benchmark 7-zip

2 participants