Skip to content

Commit faa7df2

Browse files
authored
Update README.md
1 parent dc0e502 commit faa7df2

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

problem-1/README.md

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

3-
Link: https://leetcode.com/problems/length-of-last-word/description/
3+
Link: https://leetcode.com/problems/length-of-last-word/description/
44

55
# Benchmarks
66

7-
Benchmark 1: python3 problem-1.py
8-
9-
Time (mean ± σ): 11.1 ms ± 1.6 ms [User: 9.4 ms, System: 1.8 ms]
10-
11-
Range (min … max): 8.8 ms … 22.1 ms 212 runs
12-
13-
14-
Benchmark 2: mojo problem-1.mojo
15-
16-
Time (mean ± σ): 222.3 ms ± 9.7 ms [User: 238.4 ms, System: 28.6 ms]
17-
18-
Range (min … max): 205.5 ms … 238.0 ms 14 runs
7+
| | Time (mean ± σ) | Range (min … max) | Avg.Memory | Runs |
8+
| --- | --- | --- | --- | --- |
9+
| Python | 11.1 ms ± 1.6 ms | 8.8 ms … 22.1 ms | 8412k | 212 runs |
10+
| Mojo | 222.3 ms ± 9.7 ms | 205.5 ms … 238.0 ms | 38548k | 14 runs |
1911

2012
# Which performed better?
21-
'python3 problem-1.py' ran
22-
19.95 ± 3.02 times faster than 'mojo problem-1.mojo'
2313

14+
The Python code ran 19.95 ± 3.02 times faster than Mojo code

0 commit comments

Comments
 (0)