You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,11 @@ Fast query at scale a vast range of data, including web search results, flight s
16
16
17
17
## Installation
18
18
19
-
To achieve optimal performance, it is essential to have Ruby 3.1+ (preferably version 3.4) installed.
19
+
To achieve optimal performance, it is essential to latest Ruby version installed on your system (Ruby 2.7+ is supported by 3.4 is recommended for [performance reason](#Performance-Comparison)).
20
20
21
21
| Older versions such as Ruby 1.9, 2.x, and JRuby are compatible with [serpapi older library](https://github.com/serpapi/google-search-results-ruby), which continues to function effectively. see [migration guide](#Migration-quick-guide) if you are using the older library.
1.**Upgrade to Ruby 3.4.4**: Clear performance benefits across all scenarios
1024
+
2.**Use Persistent Connections**: 2x+ performance improvement in most cases
1025
+
3.**HTTP.rb Performance**: Particularly benefits from Ruby 3.4.4 with persistent connections
1026
+
4.**SerpApi Optimization**: Shows consistent ~2.2x improvement with persistent connections regardless of Ruby version
1027
+
1028
+
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.
1029
+
1010
1030
## Migration quick guide
1011
1031
1012
1032
if you were already using (google-search-results-ruby gem)[https://github.com/serpapi/google-search-results-ruby], here are the changes.
Copy file name to clipboardExpand all lines: README.md.erb
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,10 +36,11 @@ Fast query at scale a vast range of data, including web search results, flight s
36
36
37
37
## Installation
38
38
39
-
To achieve optimal performance, it is essential to have Ruby 3.1+ (preferably version 3.4) installed.
39
+
To achieve optimal performance, it is essential to latest Ruby version installed on your system (Ruby 2.7+ is supported by 3.4 is recommended for [performance reason](#Performance-Comparison)).
40
40
41
41
| Older versions such as Ruby 1.9, 2.x, and JRuby are compatible with [serpapi older library](https://github.com/serpapi/google-search-results-ruby), which continues to function effectively. see [migration guide](#Migration-quick-guide) if you are using the older library.
1. **Upgrade to Ruby 3.4.4**: Clear performance benefits across all scenarios
439
+
2. **Use Persistent Connections**: 2x+ performance improvement in most cases
440
+
3. **HTTP.rb Performance**: Particularly benefits from Ruby 3.4.4 with persistent connections
441
+
4. **SerpApi Optimization**: Shows consistent ~2.2x improvement with persistent connections regardless of Ruby version
442
+
443
+
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.
444
+
425
445
## Migration quick guide
426
446
427
447
if you were already using (google-search-results-ruby gem)[https://github.com/serpapi/google-search-results-ruby], here are the changes.
0 commit comments