There was an error with one of your snippets. Check the output below for more information.
Fastest
Code 2
160 ns
6.25M op/s
Speed
Benchmark | Runtime | Operations | VS | Visual |
---|---|---|---|---|
Code 2 | 160 ns | 6.25M op/s | 1× | |
Code 3 | 170 ns | 5.87M op/s | 1.07× | |
Code 1 | 173 ns | 5.80M op/s | 1.08× |
Memory
Benchmark | Peak Memory | Score | VS | Visual |
---|---|---|---|---|
Code 3 | < 1 KB | 14.8 | 1× | |
Code 2 | < 1 KB | 14.8 | 1× | |
Code 1 | < 1 KB | 14.8 | 1× |
Output
Code 1
No output
Code 2
No output
Code 3
No output
Code 4
NameError: name 'o' is not defined