- The benchmark was run on a MacBook (Retina, 12-inch, 2015, 1.1 GHz Intel Core M, 8 GB RAM, macOS Sierra 10.12.6, Chrome 66.0.3359.181 (64-bit))
- Ran
npm run selenium -- --count 10 --framework vanillajs-keyed --framework preact-v8.2.7-keyed --framework preact-componentDidCatch-keyed
in thewebdriver-ts
of this js-framework-benchmarks fork against this commit of the componentDidCatch-support preact branch.
This file contains hidden or 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
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo "usage: $0 <ssh-options>" | |
exit 1 | |
fi | |
restore_network() { | |
IFS=$'\n' | |
for network in `networksetup -listallnetworkservices | grep -v '*'`; do |
This file contains hidden or 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
export function coalesce$option$(option) { | |
return option !== null ? option : false; | |
} |
This file contains hidden or 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
doc = Document.getCurrentDocument() | |
path = Document.askFile("Symbols file", None, False) | |
if path != None: | |
with open(path) as fp: | |
for i, line in enumerate(fp): | |
parts = line.split(" ") | |
if len(parts) > 2: | |
address = long(parts[0], 16) | |
name = parts[2] |
This file contains hidden or 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
#!/bin/bash | |
mkdir -p ~/.kube/ | |
if [ -z "$1" ]; then | |
CURRENT=$(readlink ~/.kube/config | cut -d - -f 2-) | |
ls ~/Dropbox/kube* | cut -d - -f 2- | sed "s/$CURRENT\$/$CURRENT (current)/" | |
else | |
[[ -L ~/.kube/config ]] && rm ~/.kube/config | |
ln -s "$HOME/Dropbox/kubeconfig-$1" ~/.kube/config | |
rm -rf ~/.kube/cache ~/.kube/http-cache | |
fi |
This file contains hidden or 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
#!/bin/bash | |
while :; do | |
for c in 🌕 🌖 🌗 🌘 🌑 🌑 🌑 🌒 🌓 🌔 🌕 🌕; do | |
echo -en "\r" "$c" | |
sleep 0.1 | |
done | |
done |
This file contains hidden or 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
doc = Document.getCurrentDocument() | |
for i in range(0, doc.getSegmentCount()): | |
segment = doc.getSegment(i) | |
for j in range(0, segment.getSectionCount()): | |
section = segment.getSection(j) | |
if section.getName() == ".plt.sec": | |
address = section.getStartingAddress() | |
length = section.getLength() | |
off = 0 |
OlderNewer