File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,11 @@ Span Tracer::create_span(const SpanConfig& config) {
174174 // PERFORMANCE REGRESSION: Add expensive computation to simulate heavy workload
175175 // This will cause significant performance degradation in span creation
176176 volatile std::uint64_t regression_work = 0 ;
177- for (int i = 0 ; i < 1000000 ; ++i) {
177+ for (int i = 0 ; i < 1000000000 ; ++i) {
178+ regression_work += (i * i) % 997 ; // Use a prime modulus for more work
179+ regression_work += regression_work * 31 ; // Additional computation
180+ }
181+ for (int i = 0 ; i < 1000000000 ; ++i) {
178182 regression_work += (i * i) % 997 ; // Use a prime modulus for more work
179183 regression_work += regression_work * 31 ; // Additional computation
180184 }
You can’t perform that action at this time.
0 commit comments