Skip to content

Clean up code of legacy benchmark suite - #14081

Merged
pzread merged 9 commits into
iree-org:mainfrom
pzread:fix-11076
Jun 14, 2023
Merged

pzread merged 9 commits into
iree-org:mainfrom
pzread:fix-11076

Conversation

@pzread

@pzread pzread commented Jun 13, 2023 •

Copy link
Copy Markdown
Contributor

Clean up code of the legacy benchmark suite under build_tools/benchmarks and the related CMake rules. The legacy benchmark suite has been removed from repo 3 weeks ago.

I decided to put all cleanup changes in a single PR so it will be easier to revert, if needed. Each commit in this PR presents a single cleanup step and mostly focuses on a single area.

Fix #11076

@pzread
pzread force-pushed the fix-11076 branch 3 times, most recently from 36b8904 to be350c9 Compare June 13, 2023 07:45
@pzread pzread added benchmarks:cuda Run default CUDA benchmarks benchmarks:x86_64 Run default x86_64 benchmarks benchmarks:comp-stats Run default compilation statistics benchmarks benchmarks:android-cpu Run default Android CPU benchmarks benchmarks:android-gpu Run default Android GPU benchmarks benchmarks:vulkan-nvidia Run default Vulkan benchmarks on NVIDIA GPU labels Jun 13, 2023
@pzread
pzread force-pushed the fix-11076 branch 2 times, most recently from 136c95e to 9ba8f60 Compare June 13, 2023 07:55
@github-actions

github-actions Bot commented Jun 13, 2023 •

Copy link
Copy Markdown

Abbreviated Benchmark Summary

@ commit f4fbf06d009faeb94af313e9ddb0adfbfd39f45f (vs. base 2bb9a54ddc3934ce2d21cce2a9d5b58fe115e3d1)

Regressed Latencies 🚩

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
BertForMaskedLMTF(stablehlo) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][default-flags] local\_task(embedded\_elf)[8-thread,full-inference,default-flags] with zeros @ c2-standard-16[cpu] 456.326 (vs. 396.391, 15.12%↑) 455.578 2.550
MobileBertSquad\_int8(tflite) [arm-valhall-vulkan\_android31-vulkan\_spirv][default-flags] vulkan(none)[full-inference,default-flags] with zeros @ pixel-6-pro[gpu] 95.476 (vs. 88.122, 8.35%↑) 95.579 1.616
EfficientNet\_int8(tflite) [arm-valhall-vulkan\_android31-vulkan\_spirv][experimental-flags,fuse-padding,max-concurrency] vulkan(none)[full-inference,default-flags] with zeros @ pixel-6-pro[gpu] 14.978 (vs. 14.142, 5.91%↑) 15.017 0.095

[Top 3 out of 4 results showed]

Improved Latencies 🎉

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
MobileNetV3Small\_fp32(tflite) [armv8.2-a-generic-linux\_android29-llvm\_cpu][default-flags] local\_sync(embedded\_elf)[full-inference,default-flags] with zeros @ pixel-6-pro[big-core] 6.306 (vs. 6.868, 8.18%↓) 6.320 0.042
MobileNetV2\_fp32(tflite) [vmvx-generic-vmvx-vmvx][experimental-flags] local\_task(vmvx\_module)[4-thread,full-inference,system-scheduling] with zeros @ pixel-6-pro[big-core] 4560.131 (vs. 4897.543, 6.89%↓) 4607.109 141.370
MobileNetV3Small\_fp32(tflite) [vmvx-generic-vmvx-vmvx][experimental-flags] local\_task(vmvx\_module)[4-thread,full-inference,system-scheduling] with zeros @ pixel-6-pro[big-core] 926.394 (vs. 988.957, 6.33%↓) 921.792 15.526

[Top 3 out of 5 results showed]

No improved or regressed compilation metrics 🏖️

For more information:

Source Workflow Run

print("Benchmark completed")

if results_path:
benchmark_cases = self.benchmark_suite.filter_benchmarks(

@pzread pzread Jun 13, 2023 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This part is the same as the deleted lines above, just changed the indent.

@pzread
pzread marked this pull request as ready for review June 13, 2023 16:57
@GMNGeoffrey GMNGeoffrey changed the title Cleanup code of legacy benchmark suite Clean up code of legacy benchmark suite Jun 13, 2023
@pzread
pzread merged commit bed2763 into iree-org:main Jun 14, 2023
nhasabni pushed a commit to plaidml/iree that referenced this pull request Aug 24, 2023
Clean up code of the legacy benchmark suite under `build_tools/benchmarks` and the related CMake rules.
Fix iree-org#11076
stellaraccident pushed a commit that referenced this pull request Sep 24, 2023
* iree: bed2763 Clean up code of legacy benchmark suite (#14081) (Wed
Jun 14 00:12:46 2023 -0400)
* xla: c13f357f0 Reverts 34d661c3b792cd9a55a5f6de6d5b58e4d7856c4b (Wed
Jun 14 11:24:40 2023 -0700)
* jax: b42282d30 Ensure effect indices are updated when constvars are
modified. This resolves a bug where conditional Read<N> effect indices N
were sometimes referring to the incorrect invars. (Wed Jun 14 10:09:54
2023 -0700)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmarks:android-cpu Run default Android CPU benchmarks benchmarks:android-gpu Run default Android GPU benchmarks benchmarks:comp-stats Run default compilation statistics benchmarks benchmarks:cuda Run default CUDA benchmarks benchmarks:vulkan-nvidia Run default Vulkan benchmarks on NVIDIA GPU benchmarks:x86_64 Run default x86_64 benchmarks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate benchmark pipeline to e2e test framework

2 participants