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
1. C Benchmark | |
program: https://gist.github.com/qtxie/5835613 | |
- No optimizition | |
compiling: cl random.c | |
run in windows powershell: | |
PS > Measure-Command {Start-Process .\random.exe -Wait} |
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
#include <stdio.h> | |
/* Mersenne Twister magic numbers */ | |
#define _RAND_N 624 | |
#define _RAND_M 397 | |
#define _RAND_U 0x80000000L | |
#define _RAND_L 0x7fffffffL | |
/* Mersenne Twister state and seed storage */ | |
static int rand_state[_RAND_N]; |
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
Red/System [ | |
Title: "Mersenne Twister Random Function" | |
Author: "XieQ" | |
Tabs: 4 | |
Purpose: { | |
Generates a random number using the Mersenne Twister algorithm. | |
Reference http://code.google.com/p/c-standard-library/source/browse/src/internal/_rand.c | |
} | |
] |
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
from selenium import webdriver | |
from selenium.common.exceptions import TimeoutException | |
import selenium.webdriver.support.wait | |
selenium.webdriver.support.wait.POLL_FREQUENCY = 0.05 | |
import re | |
import random | |
import collections | |
class AdwordsAutomater(object): |
NewerOlder