Skip to content

Commit 1a4e482

Browse files
committed
wip
1 parent 6e3afc1 commit 1a4e482

File tree

6 files changed

+42
-42
lines changed

6 files changed

+42
-42
lines changed

module/core/strs_tools/benchmarks/current_run_results.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Latest Benchmark Execution Results
22

3-
*Generated: 2025-08-06 12:37 UTC*
3+
*Generated: 2025-08-06 12:45 UTC*
44

55
## Benchmark Execution Summary
66

@@ -25,34 +25,34 @@ The benchmark system tests three critical bottlenecks:
2525

2626
### Detailed Timing Data
2727
**Multi-delimiter 2KB** (2KB)
28-
- Scalar: 2.550ms (783.2 MiB/s)
29-
- SIMD: 0.187ms (11.5 MiB/s)
30-
- **Improvement: 13.3x faster**
28+
- Scalar: 2.457ms (812.9 MiB/s)
29+
- SIMD: 0.181ms (11.1 MiB/s)
30+
- **Improvement: 13.6x faster**
3131

3232
**Multi-delimiter 10KB** (10KB)
33-
- Scalar: 13.325ms (750.4 MiB/s)
34-
- SIMD: 0.437ms (24.8 MiB/s)
35-
- **Improvement: 29.9x faster**
33+
- Scalar: 12.838ms (778.9 MiB/s)
34+
- SIMD: 0.421ms (23.9 MiB/s)
35+
- **Improvement: 30.5x faster**
3636

3737
**Multi-delimiter 50KB** (50KB)
38-
- Scalar: 92.857ms (538.4 MiB/s)
39-
- SIMD: 0.677ms (80.1 MiB/s)
40-
- **Improvement: 134.4x faster**
38+
- Scalar: 89.468ms (558.8 MiB/s)
39+
- SIMD: 0.652ms (77.2 MiB/s)
40+
- **Improvement: 137.0x faster**
4141

4242
**Large input 100KB** (100KB)
43-
- Scalar: 151.570ms (659.8 MiB/s)
44-
- SIMD: 9.265ms (11.7 MiB/s)
45-
- **Improvement: 16.1x faster**
43+
- Scalar: 146.037ms (684.7 MiB/s)
44+
- SIMD: 8.927ms (11.3 MiB/s)
45+
- **Improvement: 16.4x faster**
4646

4747
**Large input 500KB** (500KB)
48-
- Scalar: 814.374ms (613.9 MiB/s)
49-
- SIMD: 42.889ms (12.6 MiB/s)
50-
- **Improvement: 18.6x faster**
48+
- Scalar: 784.647ms (637.2 MiB/s)
49+
- SIMD: 41.324ms (12.2 MiB/s)
50+
- **Improvement: 19.0x faster**
5151

5252
**Pattern complexity - 8 delims** (10KB)
53-
- Scalar: 244.114ms (42.0 MiB/s)
54-
- SIMD: 1.145ms (9.7 MiB/s)
55-
- **Improvement: 208.8x faster**
53+
- Scalar: 235.203ms (43.6 MiB/s)
54+
- SIMD: 1.103ms (9.3 MiB/s)
55+
- **Improvement: 212.9x faster**
5656

5757

5858
## Performance Characteristics

module/core/strs_tools/benchmarks/detailed_results.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ Based on recent benchmark runs, SIMD optimizations provide the following improve
88

99
| Test Category | Input Size | Improvement | Detailed Metrics |
1010
|---------------|------------|-------------|------------------|
11-
| Multi-delimiter 2KB | 2KB | 13.3x faster | Scalar: 2.55ms, SIMD: 0.19ms (12 MiB/s) |
12-
| Multi-delimiter 10KB | 10KB | 29.9x faster | Scalar: 13.32ms, SIMD: 0.44ms (25 MiB/s) |
13-
| Multi-delimiter 50KB | 50KB | 134.4x faster | Scalar: 92.86ms, SIMD: 0.68ms (80 MiB/s) |
14-
| Large input 100KB | 100KB | 16.1x faster | Scalar: 151.57ms, SIMD: 9.26ms (12 MiB/s) |
15-
| Large input 500KB | 500KB | 18.6x faster | Scalar: 814.37ms, SIMD: 42.89ms (13 MiB/s) |
16-
| Pattern complexity - 8 delims | 10KB | 208.8x faster | Scalar: 244.11ms, SIMD: 1.15ms (10 MiB/s) |
11+
| Multi-delimiter 2KB | 2KB | 13.6x faster | Scalar: 2.46ms, SIMD: 0.18ms (11 MiB/s) |
12+
| Multi-delimiter 10KB | 10KB | 30.5x faster | Scalar: 12.84ms, SIMD: 0.42ms (24 MiB/s) |
13+
| Multi-delimiter 50KB | 50KB | 137.0x faster | Scalar: 89.47ms, SIMD: 0.65ms (77 MiB/s) |
14+
| Large input 100KB | 100KB | 16.4x faster | Scalar: 146.04ms, SIMD: 8.93ms (11 MiB/s) |
15+
| Large input 500KB | 500KB | 19.0x faster | Scalar: 784.65ms, SIMD: 41.32ms (12 MiB/s) |
16+
| Pattern complexity - 8 delims | 10KB | 212.9x faster | Scalar: 235.20ms, SIMD: 1.10ms (9 MiB/s) |
1717

1818
## Bottleneck Analysis
1919

@@ -29,5 +29,5 @@ Based on recent benchmark runs, SIMD optimizations provide the following improve
2929

3030
---
3131

32-
*Generated: 2025-08-06 12:37 UTC*
32+
*Generated: 2025-08-06 12:45 UTC*
3333
*This file updated after each benchmark run*

module/core/strs_tools/benchmarks/readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
## Executive Summary
44

5-
SIMD optimization provides **dramatic performance improvements** for string processing operations, with improvements ranging from **13.3x to 208.8x faster** depending on operation complexity.
5+
SIMD optimization provides **dramatic performance improvements** for string processing operations, with improvements ranging from **13.6x to 212.9x faster** depending on operation complexity.
66

77
## Key Results
88

9-
- **Multi-delimiter splitting**: 70.2x average improvement
10-
- **Large input processing**: 18.6x improvement on 500KB inputs
11-
- **Complex patterns**: 208.8x improvement with 8 delimiters
12-
- **Peak SIMD throughput**: 80.1 MiB/s vs 783.2 MiB/s scalar
9+
- **Multi-delimiter splitting**: 71.5x average improvement
10+
- **Large input processing**: 19.0x improvement on 500KB inputs
11+
- **Complex patterns**: 212.9x improvement with 8 delimiters
12+
- **Peak SIMD throughput**: 77.2 MiB/s vs 812.9 MiB/s scalar
1313

1414
## How to Run
1515

@@ -33,5 +33,5 @@ Benchmarks automatically update the following files:
3333

3434
---
3535

36-
*Last updated: 2025-08-06 12:37 UTC*
36+
*Last updated: 2025-08-06 12:45 UTC*
3737
*All documentation automatically generated during benchmark execution*

module/move/unilang/benchmarks/readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ This directory contains comprehensive performance benchmarks for the unilang fra
1010
./benchmark/run_all_benchmarks.sh
1111

1212
# ⚡ QUICK THROUGHPUT BENCHMARK (30-60 seconds) - recommended for daily use
13-
cargo test throughput_benchmark_test --release --features benchmarks -- --ignored --nocapture
13+
cargo bench throughput_benchmark --features benchmarks
1414

1515
# Or run individual benchmarks:
1616
# Comprehensive 3-way framework comparison (8-10 minutes)
1717
./benchmark/run_comprehensive_benchmark.sh
1818

1919
# Direct test execution (alternative):
20-
cargo test comprehensive_benchmark_test --release --features benchmarks -- --ignored --nocapture
20+
cargo bench comprehensive_benchmark --features benchmarks
2121

2222
# Test-based execution:
2323
cargo test throughput_performance_benchmark --release --features benchmarks -- --ignored --nocapture
@@ -89,8 +89,8 @@ cargo test run_all_benchmarks --release --features benchmarks -- --nocapture --i
8989
./benchmark/run_comprehensive_benchmark.sh # 3-way comparison (8-10 min)
9090

9191
# Individual benchmarks:
92-
cargo test throughput_benchmark_test --release --features benchmarks -- --ignored --nocapture # ⚡ ~30-60 sec (RECOMMENDED DAILY)
93-
cargo test throughput_benchmark_test --release --features benchmarks -- --ignored --nocapture -- --quick # ⚡ ~10-15 sec (QUICK MODE)
92+
cargo bench throughput_benchmark --features benchmarks # ⚡ ~30-60 sec (RECOMMENDED DAILY)
93+
cargo bench throughput_benchmark --features benchmarks -- --quick # ⚡ ~10-15 sec (QUICK MODE)
9494
cargo test comprehensive_framework_comparison_benchmark --release --features benchmarks -- --ignored --nocapture # ~8 min
9595

9696
# Verification commands:
@@ -117,10 +117,10 @@ cargo test --release # Fast - doesn't run benchm
117117

118118
```bash
119119
# Full mode (30-60 seconds) - Tests all command counts: 10, 100, 1K, 10K, 100K
120-
cargo test throughput_benchmark_test --release --features benchmarks -- --ignored --nocapture
120+
cargo bench throughput_benchmark --features benchmarks
121121

122122
# Quick mode (10-15 seconds) - Tests subset: 10, 100, 1K
123-
cargo test throughput_benchmark_test --release --features benchmarks -- --ignored --nocapture -- --quick
123+
cargo bench throughput_benchmark --features benchmarks -- --quick
124124
```
125125

126126
**Benefits:**
@@ -216,7 +216,7 @@ All benchmarks generate detailed reports in `target/` subdirectories:
216216
./benchmark/run_all_benchmarks.sh
217217

218218
# 🔧 Direct binary execution (alternative method)
219-
cargo test comprehensive_benchmark_test --release --features benchmarks -- --ignored --nocapture
219+
cargo bench comprehensive_benchmark --features benchmarks
220220
```
221221

222222
## 📊 **Generated Reports & Metrics**

module/move/unilang/benchmarks/run_comprehensive_benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ echo ""
1212
cd "$(dirname "$0")/.."
1313

1414
# Run the comprehensive benchmark directly
15-
cargo test comprehensive_benchmark_test --release --features benchmarks -- --ignored --nocapture
15+
cargo bench comprehensive_benchmark --features benchmarks
1616

1717
echo ""
1818
echo "✅ Benchmark completed successfully!"

module/move/unilang/benchmarks/test_benchmark_system.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ echo " ./benchmarks/run_all_benchmarks.sh"
3838
echo ""
3939
echo "📋 Individual benchmarks (all ignored by default):"
4040
echo " cargo test comprehensive_framework_comparison_benchmark --release --features benchmarks -- --ignored"
41-
echo " cargo test throughput_benchmark_test --release --features benchmarks -- --ignored --nocapture"
42-
echo " cargo test throughput_benchmark_test --release --features benchmarks -- --ignored --nocapture -- --quick"
41+
echo " cargo bench throughput_benchmark --features benchmarks"
42+
echo " cargo bench throughput_benchmark --features benchmarks -- --quick"
4343
echo ""
4444
echo "✅ Benchmark system test completed!"

0 commit comments

Comments
 (0)