| InfluxDB/TICK | Prometheus | |
|---|---|---|
| data collection | 1.8: Push 2.0: Push & Pull |
Pull |
| data type | float, int, bool, string | float |
| time accurancy | nanoseconds | milliseconds |
| storage | InfluxDB | TSDB |
| retention | custom by database | global |
| query language | 1.8: InfluxQL (SQL) and Flux 2.0: Flux (functional) |
PromQL (functional) |
| downsampling | Yes, CQ or Kapacitor | No |
| aggregation | Yes, CQ or Kapacitor | Yes, recording rules |
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
| require "benchmark" | |
| $:.push File.join(File.dirname(__FILE__), 'lib') | |
| require 'redis' | |
| ITERATIONS = 10_000 | |
| BATCHES = [10, 100, 1_000, 10_000] | |
| @r = Redis.new |
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
| begin | |
| require "bundler/inline" | |
| rescue LoadError => e | |
| $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
| raise e | |
| end | |
| gemfile(true) do | |
| source "https://rubygems.org" |
- Attic
- Back yard
- Basement
- Bathroom
- Bedroom
- Den
- Dining Room
- Entryway
- Family Room
- Front yard
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
| #import <UIKit/UIKit.h> | |
| @interface JYDropDownTableViewController : UITableViewController{ | |
| BOOL textNeedCenter; | |
| CGFloat alpha; | |
| } | |
| @property (strong,nonatomic) UIView* parentView; | |
| @property (strong,nonatomic) NSObject* parentObject; |
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
| # Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
| # that enables you to choose a character from a menu of options. If you are on Lion | |
| # try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
| # for input. | |
| # | |
| # It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
| # it's a nightmare to deal with in Sublime Text 2 if you're running Vintage (Vim) mode, | |
| # as it means you cannot press and hold h/j/k/l to move through your file. You have | |
| # to repeatedly press the keys to navigate. |
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
| // Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
| // Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
| var FORMAT_ONELINE = 'One-line'; | |
| var FORMAT_MULTILINE = 'Multi-line'; | |
| var FORMAT_PRETTY = 'Pretty'; | |
| var LANGUAGE_JS = 'JavaScript'; | |
| var LANGUAGE_PYTHON = 'Python'; |