Skip to content

Instantly share code, notes, and snippets.

View tudalex's full-sized avatar

Tudorica Constantin-Alexandru tudalex

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tudalex on github.
  • I am tudalex (https://keybase.io/tudalex) on keybase.
  • I have a public key ASBtFnYvBRFisBGB8XMXNoXSD11SYuFiX_v5HPkxazAczQo

To claim this, I am signing this object:

#include <stdio.h>
int main() {
printf("shiftari\t%%d\t\t%%lld\t\tLL %%lld\n");
for (size_t i = 0; i < 64; ++i) {
printf("%u\t%11d%11lld%20lld\n", i, 1<<i, 1<<i, (long long unsigned) 1<<i);
}
return 0;
}
#include <stdio.h>
int main() {
int t = 1;
for (size_t i = 0; i < 64; ++i) {
printf("%u %d %lld\n", i, 1<<i, (long long unsigned) 1<<i);
}
return 0;
}
#include <stdio.h>
int main() {
for (size_t i = 0; i < 64; ++i) {
printf("%u %lld %lld\n", i, 1<<i, (long long unsigned) 1<<i);
}
return 0;
}
  • treaba 1
  • treaba 2
  • treaba 3
## Compare python mysql drivers, don't forget to run it twice in order to warmup your db
* Python version: 2.7.3 (2.2.1+dfsg-1~ppa1, Nov 28 2013, 02:02:56)
[PyPy 2.2.1 with GCC 4.6.3]
* Platform: Linux-3.11.0-15-generic-x86_64-with-Ubuntu-13.10-saucy
* Database: https://launchpad.net/test-db 1.0.6
* MySQLdb version: 1.2.5 url:https://github.com/farcepest/MySQLdb1
* mysql.connector version: 1.1.4 url:http://dev.mysql.com/downloads/connector/python/
* pymysql version: 0.6.1.None url:https://github.com/petehunt/PyMySQL
## Simple Select 1 record 10000x
* 9.53599905968 MySQLdb
0 1 1
1 1 3
0 1 0
1 1 5
0 3 0 2 7
1 1 5
0 6 4 2 7 2 0 7
1 1 4
0 2 2 1
1 1 4