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 Webvtt | |
| DEFAULT_MAX_CHAR_LENGTH = 40 | |
| class Cue | |
| attr_accessor :start, :end, :words | |
| def initialize(words) | |
| self.words = words | |
| end | |
| def to_s |
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
| config: | |
| target: "ws://localhost:4000/socket/websocket?client_id=fb55a707-8f3a-4900-b095-0b971550c61d&vsn=2.0.0" | |
| phases: | |
| - duration: 60 # Test for 60 seconds | |
| arrivalRate: 100 # Every second, add 10 users | |
| rampTo: 1000 # And ramp it up to 100 users in total over the 60s period | |
| name: "Ramping up the load" | |
| - duration: 120 # Then resume the load test for 120s | |
| arrivalRate: 100 # With those 100 users we ramped up to in the first phase | |
| rampTo: 1000 # And keep it steady at 100 users |
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
| source 'https://rubygems.org' | |
| gem 'eventmachine' | |
| gem 'eventmachine-tail' | |
| gem 'yajl' | |
| gem 'ruby-kafka' |
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 'pg' | |
| uri = '' | |
| file = File.open('tmp/write.txt', 'w') | |
| while true do | |
| begin | |
| conn = PG.connect( uri ) |
OlderNewer