Skip to content

Commit ab6b1fc

Browse files
author
dbuchaca
committed
feat: add execution times
1 parent 73e17f2 commit ab6b1fc

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

python_libraries/ray/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,19 @@ This will trigger the execution of the function but not block the runtime of the
99

1010
In `01_parallel_calls.py` one can see the execution of a remote function, where each call needs 2 seconds.
1111
The remote function runned 10 times takes approximately 2 seconds, whereas the serial takes around 20.
12+
13+
```
14+
python 01_parallel_calls.py
15+
```
16+
17+
```
18+
2024-11-29 16:08:09,296 INFO worker.py:1819 -- Started a local Ray instance.
19+
20+
Successfully imported ray!
21+
22+
sum_serial(n)=10
23+
time sum_serial=20.037309885025024
24+
25+
sum_remote(n)=10
26+
time sum_remote=2.1553449630737305
27+
```

0 commit comments

Comments
 (0)