This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
..................... | |
dict[int]: Mean +- std dev: 28.2 ns +- 1.3 ns | |
..................... | |
list[int]: Mean +- std dev: 105 ns +- 5 ns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import itertools | |
import os | |
import random | |
import string | |
import sys | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Option<T> { | |
private readonly value?: T; | |
constructor(value?: T) { | |
this.value = value; | |
} | |
public isSome() { | |
return this.value !== void 0; | |
} |
OlderNewer