Skip to content

Commit 84a670d

Browse files
authored
Update README.md
1 parent 82ef8b1 commit 84a670d

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

problem-4/README.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
# Problem 4
22

3-
Link: https://leetcode.com/problems/detect-capital/description/
3+
Link: https://leetcode.com/problems/detect-capital/description/
44

55
# Benchmarks
66

7-
Benchmark 1: python3 problem-4.py
8-
9-
Time (mean ± σ): 11.1 ms ± 1.3 ms [User: 9.6 ms, System: 1.7 ms]
10-
11-
Range (min … max): 9.8 ms … 17.4 ms 260 runs
12-
13-
14-
15-
Benchmark 2: mojo problem-4.mojo
16-
17-
Time (mean ± σ): 230.1 ms ± 10.1 ms [User: 249.7 ms, System: 26.7 ms]
18-
19-
Range (min … max): 215.3 ms … 252.0 ms 13 runs
7+
| | Time (mean ± σ) | Range (min … max) | Avg.Memory | Runs |
8+
| --- | --- | --- | --- | --- |
9+
| Python | 11.1 ms ± 1.3 ms | 9.8 ms … 17.4 ms | 8420k | 260 runs |
10+
| Mojo | 230.1 ms ± 10.1 ms | 215.3 ms … 252.0 ms | 38820k | 13 runs |
2011

2112
# Which performed better?
22-
'python3 problem-4.py' ran
23-
20.64 ± 2.52 times faster than 'mojo problem-4.mojo'
13+
14+
The Python code ran 20.64 ± 2.52 times faster than the Mojo code

0 commit comments

Comments
 (0)