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/env python | |
| import os | |
| import sys | |
| import time | |
| import uuid | |
| import random | |
| import requests | |
| import argparse | |
| import configparser |
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
| // | |
| // Examples: | |
| // BENCH_RATE=500 BENCH_DURATION=20s BENCH_VIEW_LIMIT=16 k6 run ./$script.js | |
| // | |
| // config:set("log", "level", "warning"). | |
| // | |
| import http from 'k6/http'; | |
| import encoding from 'k6/encoding'; |
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/env python3 | |
| # Render _time_seq response as a histogram using matplotlib | |
| # Run as: | |
| # http $DB/db/_time_seq | ~/scripts/time_seq_histogram_mplib.py | |
| import json, sys | |
| from datetime import datetime | |
| import matplotlib.pyplot as plt | |
| import matplotlib.dates as mdates |
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
| -module(bench_parse_revid). | |
| -export([go/0]). | |
| -define(REPEAT, 100). | |
| go() -> | |
| go([10, 100, 500, 1000, 2500]). | |
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/env python | |
| # ./just_view.py 500 1000 | |
| import sys | |
| import time | |
| import random | |
| import requests | |
| TIMEOUT=120 |
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
| % Save in ./couchdb top level | |
| % | |
| % $ ./dev/run ... | |
| % $ remsh | |
| % | |
| % > bench_config:go(1000000, 100). | |
| % #{max => 5.620738,min => 0.62035,total => 5633922, | |
| % avg => 3.82163797,p50 => 4.568493,p75 => 5.314903, | |
| % p90 => 5.519178} | |
| % |
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 | |
| # ./dev/run --admin=adm:pass -n1 | |
| # "http" is httpie (https://httpie.io) | |
| DB=http://adm:pass@127.0.0.1:15984 | |
| http -q delete $DB/db | |
| http -q put $DB/db |
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/sh | |
| # ./dev/run --admin=adm:pass -n1 | |
| # "http" is httpie (https://httpie.io) | |
| DB=http://adm:pass@127.0.0.1:15984 | |
| http -q delete $DB/db | |
| http -q put $DB/db |
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/env python | |
| # ./just_view.py 500 1000 | |
| import sys | |
| import time | |
| import requests | |
| TIMEOUT=120 | |
| AUTH=('adm','pass') |
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/sh | |
| # Create test DBs | |
| echo "***** SETTING UP DBS *****" | |
| curl -s -XDELETE 'http://adm:pass@localhost:15984/source' | |
| curl -s -XDELETE 'http://adm:pass@localhost:15984/target' | |
| curl -s -XPUT 'http://adm:pass@localhost:15984/source' | |
| echo '{ |
NewerOlder