Skip to content

Commit c132177

Browse files
committed
[demo] improve comment of thread pool
1 parent 5f625ad commit c132177

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

demo/demo_thread_pool.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# The provided code snippet is a Ruby spec test case that
2-
# demonstrates the use of thread pools to execute multiple HTTP
3-
# requests concurrently.
1+
# The provided code snippet is a Ruby benchmarking script that
2+
# demonstrates the use of thread pools to execute multiple HTTP
3+
# requests concurrently using persistent connections to SerpApi.
44
#
55
# **Key Points:**
66
#
@@ -13,9 +13,9 @@
1313
# * The `to_s` method converts the HTTP response to a string.
1414
# * The `total` method from the `Benchmark` class is used to measure
1515
# the total execution time of the code block.
16-
16+
#
1717
# **Purpose:**
18-
18+
#
1919
# The code aims to demonstrate how thread pools can be used to
2020
# improve performance by executing multiple tasks concurrently. In
2121
# this case, it makes multiple HTTP requests to an API endpoint using

0 commit comments

Comments
 (0)