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 ( | |
"flag" | |
"math/rand" | |
"net/http" | |
"sync" | |
"time" | |
"github.com/gin-gonic/gin" |
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
gateway | 10% | 25% | 50% | 75% | 90% | 95% | 99% | min | max | avg | |
---|---|---|---|---|---|---|---|---|---|---|---|
KrakenD | 21.3 | 23.1 | 24.5 | 29.5 | 43.2 | 46.9 | 77.1 | 0.9 | 278.1 | 28.7 | |
Vulcand | 29.0 | 37.8 | 49.0 | 57.1 | 66.5 | 73.3 | 205.7 | 1.0 | 342.6 | 50.5 | |
Kong | 40.7 | 43.5 | 46.1 | 49.7 | 81.6 | 107.6 | 235.5 | 7.6 | 1597.8 | 56.9 | |
Tyk | 35.5 | 52.1 | 82.3 | 178.5 | 526.3 | 923.1 | 2105.4 | 1.2 | 5648.2 | 221.5 |
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
#! python | |
import json | |
import os | |
print "Parsing the members table" | |
# handle = os.popen("serf members -format=json") | |
handle = os.popen("cat serf_members_fake.json") | |
memberTable = json.load(handle) | |
products = {} |
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 | |
# don't forget to run it as root!!! | |
apt-get update | |
apt-get -y install unzip | |
apt-get -f -y install default-jdk openjdk-7-jdk | |
mkdir -p /opt | |
cd /opt |
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 | |
export RUN_AS='ubuntu'; | |
export INSTALL_DIR='/var/www/sentry'; | |
HOSTNAME='http://mysentry.example.com'; # No trailing slash | |
DB_HOST='something.rds.amazonaws.com'; | |
DB_PORT='5432'; | |
DB_USER='sentry'; | |
DB_NAME='sentry'; | |
DB_PASSWORD='DB_PASSWORD'; |
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 sudoku | |
class BoxMappedSudoku { | |
val EmptyValue = '0' | |
val MaxValue = 9 | |
val allValues = "123456789".toList | |
val indexes = (0 to 8).toList | |
val boxCoordinates = (0 to 2).toList |
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
$ ab -c 5 -n 100 -H "Content-Type:text/javascript; charset=utf-8" -p jquery.js -T "text/javascript" http://localhost:2013/ | |
This is ApacheBench, Version 2.3 <$Revision: 1430300 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking localhost (be patient).....done | |
Server Software: Jetty(7.6.10.v20130312) | |
Server Hostname: localhost |
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
<?php | |
$totalIterations = 100000; | |
$data = "test"; | |
$dataToHash = array(); | |
echo "PHP Hash benchmark.\nCreating $totalIterations random strings.\n"; | |
function generateRandomString( | |
$length = 20, $chars = '-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
) |