Skip to content

Commit dc0e502

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

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

problem-2/README.md

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

3-
Link: https://leetcode.com/problems/student-attendance-record-i/description/
3+
Link: https://leetcode.com/problems/student-attendance-record-i/description/
44

55
# Benchmarks
66

7-
Benchmark 1: python3 problem-2.py
8-
9-
Time (mean ± σ): 11.9 ms ± 2.2 ms [User: 9.8 ms, System: 2.2 ms]
10-
11-
Range (min … max): 8.8 ms … 23.0 ms 316 runs
12-
13-
Benchmark 2: mojo problem-2.mojo
14-
15-
Time (mean ± σ): 236.4 ms ± 5.3 ms [User: 259.6 ms, System: 21.9 ms]
16-
17-
Range (min … max): 228.0 ms … 243.9 ms 12 runs
7+
| | Time (mean ± σ) | Range (min … max) | Avg.Memory | Runs |
8+
| --- | --- | --- | --- | --- |
9+
| Python | 11.9 ms ± 2.2 ms | 8.8 ms … 23.0 ms | 8392k | 316 runs |
10+
| Mojo | 236.4 ms ± 5.3 ms | 228.0 ms … 243.9 ms | 39080k | 12 runs |
1811

1912
# Which performed better?
20-
'python3 problem-2.py' ran
21-
19.78 ± 3.59 times faster than 'mojo problem-2.mojo'
2213

14+
The Python code ran 19.78 ± 3.59 times faster than the Mojo code

0 commit comments

Comments
 (0)