Skip to content

Instantly share code, notes, and snippets.

@olidb2
olidb2 / benchmar.py
Last active December 22, 2015 03:59 — forked from remh/benchmar.py
import numpy as np
import timeit
metric_series_count = 3
test_list = [2.10723804e+03,1.26780400e+04, 1.47227500e+04, 1.62780752e+04, 1.71822812e+04 , 1.64260996e+04 , 2.72706328e+04 , 1.57876689e+04, 1.47809004e+04 , 1.43575615e+04 , 1.55860273e+04 , 1.55252500e+04, 1.70042930e+04 , 1.54317500e+04 , 2.22643242e+04 , 1.54446250e+04, 1.45285752e+04 , 1.52491279e+04 , 1.42818574e+04 , 1.85883770e+04, 1.90738242e+04 , 2.76426113e+04 , 1.51628740e+04 , 1.66276758e+04, 2.91944414e+04 , 1.79294004e+04 , 1.85493008e+04 , 5.05975156e+04, 5.97016328e+04 , 1.36698350e+04 , 1.75005508e+04 , 1.48950996e+04, 2.98080750e+05 , 1.28499795e+04 , 2.33493750e+04 , 1.87940508e+04, 3.70170000e+04 , 1.99230508e+04 , 1.57387549e+04 , 1.64653398e+04, 1.52441250e+04 , 1.71265371e+04 , 1.45260479e+04 , 2.36466992e+04, 1.49441504e+04 , 1.56413750e+04 , 1.53727500e+04 , 1.65995508e+04, 2.31307363e+04 , 3.10398047e+04 , 2.02409023e+04 , 2.81140957e+04, 2.01719004e+04 , 1.79341
@olidb2
olidb2 / sst2json.sh
Created April 23, 2012 21:05
sst2json oli script
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@olidb2
olidb2 / gist:1613224
Created January 14, 2012 22:52
cassandra config
# Cassandra YAML generated from previous config
# Configuration wiki: http://wiki.apache.org/cassandra/StorageConfiguration
authenticator: org.apache.cassandra.auth.AllowAllAuthenticator
authority: org.apache.cassandra.auth.AllowAllAuthority
auto_bootstrap: true
binary_memtable_throughput_in_mb: 32
cluster_name: DataDog Cluster
column_index_size_in_kb: 64
commitlog_directory: /usr/local/var/lib/cassandra/commitlog
commitlog_rotation_threshold_in_mb: 32