File tree 1 file changed +6
-14
lines changed 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change 1
1
# Problem 2
2
2
3
- Link: https://leetcode.com/problems/student-attendance-record-i/description/
3
+ Link: https://leetcode.com/problems/student-attendance-record-i/description/
4
4
5
5
# Benchmarks
6
6
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 |
18
11
19
12
# Which performed better?
20
- 'python3 problem-2.py' ran
21
- 19.78 ± 3.59 times faster than 'mojo problem-2.mojo'
22
13
14
+ The Python code ran 19.78 ± 3.59 times faster than the Mojo code
You can’t perform that action at this time.
0 commit comments