Skip to content

Instantly share code, notes, and snippets.

View chadladensack's full-sized avatar
🕶️
Living the dream

Chad Ladensack chadladensack

🕶️
Living the dream
  • Revcontent, LLC
  • Sarasota, FL
View GitHub Profile
@chadladensack
chadladensack / aerospike_benchmark.php
Last active August 29, 2015 14:26
A tool for benchmarking the Aerospike PHP client for setting multiple records with a single bin and value.
<?php
$options = getopt('h:p:n:s:t:r:f:');
$host = isset($options['h']) ? $options['h'] : '127.0.0.1';
$port = isset($options['p']) ? $options['p'] : 3000;
$namespace = isset($options['n']) ? $options['n'] : 'test';
$set = isset($options['s']) ? $options['s'] : 'testing';
$ttl = isset($options['t']) ? $options['t'] : 120;
$records = isset($options['r']) ? $options['r'] : 10000;