Skip to content
Closed

Test ci #3499

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-containerized-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
steps:
- uses: actions/checkout@v5
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-containerized-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
steps:
- uses: actions/checkout@v5
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-native-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-native-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ jobs:
java-version: ["17", "21", "25"]
steps:
- uses: actions/checkout@v5
- uses: graalvm/setup-graalvm@v1
- uses: graalvm/setup-graalvm@f744c72a42b1995d7b0cbc314bde4bace7ac1fe1 # 1.5.0
with:
java-version: ${{ matrix.java-version }}
distribution: "graalvm"
Expand Down Expand Up @@ -570,7 +570,7 @@ jobs:
python-version: 3.11
cache: 'pip'
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand Down Expand Up @@ -690,7 +690,7 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand All @@ -716,7 +716,7 @@ jobs:
with:
python-version: '3.11'
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand Down Expand Up @@ -760,7 +760,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand Down Expand Up @@ -835,7 +835,7 @@ jobs:
python-version: 3.8
cache: 'pip'
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
bazelisk-version: '1.x'
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,7 @@ See [Java Benchmarks](docs/benchmarks/java) for more details.
### Rust Serialization Performance

<p align="center">
<img src="docs/benchmarks/rust/ecommerce_data.png" width="90%">
</p>

<p align="center">
<img src="docs/benchmarks/rust/system_data.png" width="90%">
<img src="docs/benchmarks/rust/throughput.png" width="95%">
</p>

For more detailed benchmarks and methodology, see [Rust Benchmarks](benchmarks/rust).
Expand Down
4 changes: 1 addition & 3 deletions benchmarks/cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ Note: Protobuf is fetched automatically via CMake FetchContent, so no manual ins

### Throughput Results (ops/sec)

<p align="center">
<img src="../../docs/benchmarks/cpp/throughput.png" width="90%">
</p>
![Throughput](../../docs/benchmarks/cpp/throughput.png)

| Datatype | Operation | Fory TPS | Protobuf TPS | Faster |
| ------------ | ----------- | --------- | ------------ | ----------- |
Expand Down
7 changes: 3 additions & 4 deletions benchmarks/cpp/benchmark_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,9 @@ def plot_combined_tps_subplot(ax, grouped_datatypes, operation, title):
for datatype, img in plot_images_sorted:
img_filename = os.path.basename(img)
img_path_report = args.plot_prefix + img_filename
md_report.append(f"\n### {datatype.replace('_', ' ').title()}\n\n")
md_report.append(
f'<p align="center">\n<img src="{img_path_report}" width="90%" />\n</p>\n'
)
plot_title = datatype.replace("_", " ").title()
md_report.append(f"\n### {plot_title}\n\n")
md_report.append(f"![{plot_title}]({img_path_report})\n")

# Results table
md_report.append("\n## Benchmark Results\n\n")
Expand Down
7 changes: 3 additions & 4 deletions benchmarks/csharp/benchmark_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,9 @@ def build_markdown(
for datatype, img in plot_images_sorted:
img_filename = os.path.basename(img)
img_path_report = args.plot_prefix + img_filename
report_lines.append(f"\n### {datatype.replace('_', ' ').title()}\n\n")
report_lines.append(
f'<p align="center">\n<img src="{img_path_report}" width="90%" />\n</p>\n'
)
plot_title = datatype.replace("_", " ").title()
report_lines.append(f"\n### {plot_title}\n\n")
report_lines.append(f"![{plot_title}]({img_path_report})\n")

report_lines.append("\n## Benchmark Results\n\n")
report_lines.append("### Timing Results (nanoseconds)\n\n")
Expand Down
4 changes: 1 addition & 3 deletions benchmarks/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ go test -bench=BenchmarkFory_Struct -benchmem

Example results on Apple M1 Pro:

<p align="center">
<img src="../../docs/benchmarks/go/benchmark_combined.png" width="95%">
</p>
![Combined Benchmark](../../docs/benchmarks/go/benchmark_combined.png)

| Data Type | Operation | Fory (ops/s) | Protobuf (ops/s) | Msgpack (ops/s) | Fory vs PB | Fory vs MP |
| ---------------- | ----------- | ------------ | ---------------- | --------------- | ---------- | ---------- |
Expand Down
5 changes: 3 additions & 2 deletions benchmarks/python/benchmark_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,9 @@ def generate_markdown_report(
for datatype, image_path in plot_images_sorted:
image_name = os.path.basename(image_path)
image_ref = f"{plot_prefix}{image_name}"
md.append(f"\n### {datatype.replace('_', ' ').title()}\n\n")
md.append(f'<p align="center">\n<img src="{image_ref}" width="90%" />\n</p>\n')
plot_title = datatype.replace("_", " ").title()
md.append(f"\n### {plot_title}\n\n")
md.append(f"![{plot_title}]({image_ref})\n")

md.append("\n## Benchmark Results\n\n")
md.append("### Timing Results (nanoseconds)\n\n")
Expand Down
5 changes: 3 additions & 2 deletions benchmarks/rust/benchmark_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,10 @@ def write_report(system_info, results, sizes, plot_images, output_dir, plot_pref
plot_images, key=lambda item: (0 if item[0] == "throughput" else 1, item[0])
)
for datatype, image_path in sorted_plots:
report.append(f"\n### {datatype_title(datatype)}\n\n")
plot_title = datatype_title(datatype)
report.append(f"\n### {plot_title}\n\n")
report.append(
f'<p align="center">\n<img src="{plot_prefix}{os.path.basename(image_path)}" width="90%" />\n</p>\n'
f"![{plot_title}]({plot_prefix}{os.path.basename(image_path)})\n"
)

report.append("\n## Benchmark Results\n\n")
Expand Down
4 changes: 1 addition & 3 deletions benchmarks/swift/benchmark_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@ def write_report(
image_path = f"{plot_prefix.rstrip('/')}/{plot_name}"
else:
image_path = plot_name
lines.append('<p align="center">')
lines.append(f'<img src="{image_path}" width="95%" />')
lines.append("</p>")
lines.append(f"![Throughput]({image_path})")
lines.append("")
lines.append(
"| Datatype | Operation | Fory TPS | Protobuf TPS | Msgpack TPS | Fastest |"
Expand Down
28 changes: 7 additions & 21 deletions docs/benchmarks/cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,45 +30,31 @@ All class-level plots below show throughput (ops/sec).

### Throughput

<p align="center">
<img src="throughput.png" width="90%" />
</p>
![Throughput](throughput.png)

### Mediacontent

<p align="center">
<img src="mediacontent.png" width="90%" />
</p>
![Mediacontent](mediacontent.png)

### Mediacontentlist

<p align="center">
<img src="mediacontentlist.png" width="90%" />
</p>
![Mediacontentlist](mediacontentlist.png)

### Sample

<p align="center">
<img src="sample.png" width="90%" />
</p>
![Sample](sample.png)

### Samplelist

<p align="center">
<img src="samplelist.png" width="90%" />
</p>
![Samplelist](samplelist.png)

### Struct

<p align="center">
<img src="struct.png" width="90%" />
</p>
![Struct](struct.png)

### Structlist

<p align="center">
<img src="structlist.png" width="90%" />
</p>
![Structlist](structlist.png)

## Benchmark Results

Expand Down
116 changes: 0 additions & 116 deletions docs/benchmarks/cpp/REPORT.md

This file was deleted.

Loading
Loading