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
| # 单条 | |
| 100w | |
| C++ | |
| SET: 97837.79 requests per second | |
| GET: 99830.29 requests per second | |
| INCR: 98941.33 requests per second | |
| LPUSH: 99088.39 requests per second | |
| RPUSH: 99019.70 requests per second |
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
| $wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.bz2 | |
| $tar xvf protobuf-2.5.0.tar.bz2 | |
| $cd protobuf-2.5.0 | |
| $./configure CC=clang CXX=clang++ CXXFLAGS='-std=c++11 -stdlib=libc++ -O3 -g' LDFLAGS='-stdlib=libc++' LIBS="-lc++ -lc++abi" | |
| $make -j 4 | |
| $sudo make install | |
| $protoc --version |
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
| // alterkeys.c | |
| // http://osxbook.com | |
| // | |
| // You need superuser privileges to create the event tap, unless accessibility | |
| // is enabled. To do so, select the "Enable access for assistive devices" | |
| // checkbox in the Universal Access system preference pane. | |
| // modified by SF-Zhou | |
| // To: Kill Double Typing on MacBook | |
| // Complile: g++ -O2 -Wall -o kill_double_typing kill_double_typing.cpp -framework ApplicationServices |
OlderNewer