File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed
Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments