Skip to content

Commit 6ec6a5e

Browse files
committed
Update performance comparison section in README to reflect Ruby 4.0.0 alongside 3.4.4 and 2.7.8, including context for benchmark results.
1 parent 2230467 commit 6ec6a5e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ see: [https://serpapi.com/yelp-search-api](https://serpapi.com/yelp-search-api)
10111011

10121012
## Performance Comparison
10131013

1014-
### Ruby 3.4.4 vs Ruby 2.7.8 Performance
1014+
### Ruby 4.0.0 vs 3.4.4 vs Ruby 2.7.8 Performance
10151015

10161016
| Metric | Ruby 2.7.8 | Ruby 3.4.4 | Ruby 4.0.0 | Improvement (3.4.4 vs 2.7.8) | Improvement (4.0.0 vs 3.4.4) |
10171017
|--------|------------|------------|------------|------------------------------|------------------------------|
@@ -1027,7 +1027,9 @@ see: [https://serpapi.com/yelp-search-api](https://serpapi.com/yelp-search-api)
10271027
4. **SerpApi Optimization**: Shows consistent ~2.2x improvement with persistent connections regardless of Ruby version
10281028
5. **Ruby 4.0.0 Performance**: Shows mixed results with some regressions compared to 3.4.4, particularly for HTTP.rb persistent connections. Ruby 4.0.0 was just released for Christmas 2025, and HTTP.rb has not been optimized for it yet.
10291029

1030-
The older library (google-search-results-ruby) was performing at 55 req/s on Ruby 2.7.8, which is 2x slower than the current version (serpapi-ruby) on Ruby 3.4.4.
1030+
The older library (google-search-results-ruby) was performing at 55 req/s on Ruby 2.7.8, which is 2x slower than the current version (serpapi-ruby) on Ruby 3.4.4 or 4.0.0.
1031+
1032+
**Context** This benchmark was performed on warmup search results using a MacBook Pro 2025 connected via Wi-Fi 6.0 home network on AT&T fiber from Austin, TX (no network optimization).
10311033

10321034
## Migration quick guide
10331035

README.md.erb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ see: [https://serpapi.com/yelp-search-api](https://serpapi.com/yelp-search-api)
492492

493493
## Performance Comparison
494494

495-
### Ruby 3.4.4 vs Ruby 2.7.8 Performance
495+
### Ruby 4.0.0 vs 3.4.4 vs Ruby 2.7.8 Performance
496496

497497
| Metric | Ruby 2.7.8 | Ruby 3.4.4 | Ruby 4.0.0 | Improvement (3.4.4 vs 2.7.8) | Improvement (4.0.0 vs 3.4.4) |
498498
|--------|------------|------------|------------|------------------------------|------------------------------|
@@ -508,7 +508,9 @@ see: [https://serpapi.com/yelp-search-api](https://serpapi.com/yelp-search-api)
508508
4. **SerpApi Optimization**: Shows consistent ~2.2x improvement with persistent connections regardless of Ruby version
509509
5. **Ruby 4.0.0 Performance**: Shows mixed results with some regressions compared to 3.4.4, particularly for HTTP.rb persistent connections. Ruby 4.0.0 was just released for Christmas 2025, and HTTP.rb has not been optimized for it yet.
510510

511-
The older library (google-search-results-ruby) was performing at 55 req/s on Ruby 2.7.8, which is 2x slower than the current version (serpapi-ruby) on Ruby 3.4.4.
511+
The older library (google-search-results-ruby) was performing at 55 req/s on Ruby 2.7.8, which is 2x slower than the current version (serpapi-ruby) on Ruby 3.4.4 or 4.0.0.
512+
513+
**Context** This benchmark was performed on warmup search results using a MacBook Pro 2025 connected via Wi-Fi 6.0 home network on AT&T fiber from Austin, TX (no network optimization).
512514

513515
## Migration quick guide
514516

0 commit comments

Comments
 (0)