Skip to content

Commit 9a313fa

Browse files
authored
Update README.md
1 parent 373557e commit 9a313fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
### Introduction
22

3-
While building [Tailcall] we often internally have debates about the low-level design of our application. Pattern matching vs dynamic dispatch has been a common one. This repo intends to explore two fundamental concepts: **pattern matching** and **dynamic dispatch** and understand the actual difference in performance.
3+
While building [Tailcall], we frequently engage in internal debates about the low-level design of our application. One recurring topic is pattern matching versus dynamic dispatch. This repository aims to explore two fundamental concepts: **pattern matching** and **dynamic dispatch**, and understand the actual differences in performance.
44

55
[Tailcall]: https://github.com/tailcallhq/tailcall
66

7-
Based on the benchmark results, pattern matching in Rust is significantly faster than dynamic dispatch (Not surprised!). The execution times indicate that pattern matching (around 320 picoseconds per operation) is roughly 72,000 times faster than dynamic dispatch (around 23 nanoseconds on the lower end of the spectrum).
7+
Based on the benchmark results, pattern matching in Rust is significantly faster than dynamic dispatch—no surprise there! The execution times indicate that pattern matching, at around 320 picoseconds per operation, is roughly 72,000 times faster than dynamic dispatch, which operates at around 23 nanoseconds on the lower end of the spectrum.
88

99
```
1010
❯ cargo bench
@@ -35,4 +35,4 @@ Found 9 outliers among 100 measurements (9.00%)
3535

3636
Happy coding! 🦀
3737

38-
PS: Feel free to raise a PR, if you think there is something wrong in the way the benchmarks are designed.
38+
PS: Feel free to raise a PR if you think there is something wrong with the way the benchmarks are designed.

0 commit comments

Comments
 (0)