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
redis.replicate_commands() | |
local key=KEYS[1] | |
local size=tonumber(ARGV[1]) or 10 | |
local count=tonumber(ARGV[2]) or 10 | |
local duration=tonumber(ARGV[3]) or 1 | |
local qps = count / duration | |
local ttl = math.ceil(size / qps) |
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
#!/usr/bin/python | |
import json | |
import random | |
import statistics | |
import matplotlib.pyplot as plot | |
import numpy | |
import sys | |
def g(): |
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
package main | |
import ( | |
"net" | |
"fmt" | |
"time" | |
"context" | |
) | |
func Dialer(ctx context.Context, network, address string) (conn net.Conn, err error) { |
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
package main | |
import ( | |
"go/ast" | |
"go/parser" | |
"go/token" | |
"go/constant" | |
"reflect" | |
"errors" | |
"fmt" |
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 __future__ import print_function | |
class Node: | |
def __init__(self, name, children): | |
self.name = name | |
self.children = children | |
tree = Node(1, [ | |
Node(2, [ | |
Node(3, [ |
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
class Node: | |
def __init__(self, name, children): | |
self.name = name | |
self.children = children | |
tree = Node(1, [ | |
Node(2, [ | |
Node(3, [ | |
Node(4, []), |