Skip to content

bench: add Realistic (40% quoted) benchmark case - #86

Merged
nnnkkk7 merged 1 commit into
mainfrom
bench/add-realistic-benchmark
Jun 14, 2026
Merged

nnnkkk7 merged 1 commit into
mainfrom
bench/add-realistic-benchmark

Conversation

@nnnkkk7

@nnnkkk7 nnnkkk7 commented Jun 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add generateRealisticCSV / generateRealisticRecords: 4/10 fields quoted with embedded commas, 6 plain — exercises the prefixXOR / PCLMULQDQ hot path on realistic mixed data
  • Add BenchmarkReadAll_Realistic_100K_{Stdlib,SIMD} for the new workload
  • Add BenchmarkReadAll_Quoted_100K_{Stdlib,SIMD} for the all-quoted worst case at 100K rows

Test plan

  • GOEXPERIMENT=simd GOARCH=amd64 go vet ./... passes
  • Run BenchmarkReadAll_Realistic_100K and BenchmarkReadAll_Quoted_100K on AVX-512 runner

Add generateRealisticCSV / generateRealisticRecords generators and
BenchmarkReadAll_Realistic_100K_{Stdlib,SIMD} to cover the case where
prefixXOR / PCLMULQDQ fires on partial data — 4 of 10 fields quoted
with embedded commas, 6 plain. Also add BenchmarkReadAll_Quoted_100K
to provide a 100K-row baseline for the all-quoted worst case.
@nnnkkk7
nnnkkk7 force-pushed the bench/add-realistic-benchmark branch from d3148bf to 698641f Compare June 14, 2026 15:59
@nnnkkk7
nnnkkk7 merged commit 22ff0a5 into main Jun 14, 2026
1 of 2 checks passed
@nnnkkk7
nnnkkk7 deleted the bench/add-realistic-benchmark branch June 14, 2026 16:01
@github-actions github-actions Bot mentioned this pull request Jun 14, 2026
@nnnkkk7 nnnkkk7 mentioned this pull request Jun 14, 2026
1 task done
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.

1 participant