Skip to content

Commit

Permalink
Reflect larger perf differences between parallel/sequential calls in …
Browse files Browse the repository at this point in the history
…the README
  • Loading branch information
oggy-dfin committed Jun 10, 2024
1 parent a670fb6 commit 8b07cc0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions motoko/parallel_calls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ First, follow the [installation instructions](https://github.com/dfinity/pocketi

Then, run the pre-made test, which now installs the `caller` and `callee` canisters on different subnets, and then runs 90 calls sequentially/in parallel.

```
```bash
CALLER_WASM=.dfx/local/canisters/caller/caller.wasm CALLEE_WASM=.dfx/local/canisters/callee/callee.wasm cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.10s
Running `target/debug/multi_subnet`
Sequential calls: 90/90 successful calls in 1.976396917s
Parallel calls: 90/90 successful calls in 353.738958ms
Finished dev [unoptimized + debuginfo] target(s) in 0.31s
Running `target/debug/multi_subnet
Sequential calls: 90/90 successful calls in 599.863583ms
Parallel calls: 90/90 successful calls in 296.402ms
```

As you can see, parallel calls run a lot faster than sequential calls here. The difference on the IC mainnet would be significantly larger still, as Pocket IC executes rounds much faster than the IC mainnet.
As you can see, parallel calls run a lot faster than sequential calls here. The difference on the IC mainnet would be significantly larger still, as Pocket IC executes rounds much faster than the IC mainnet.

0 comments on commit 8b07cc0

Please sign in to comment.