This file contains 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
# frozen_string_literal: true | |
require 'benchmark' | |
namespace :benchmark do | |
desc 'Benchmark Hash vs Openstruct vs Struct for a smallish data structure' | |
task openstruct: :environment do | |
CYCLES = 1_000 | |
PRINT_EVERY = 50 | |
DATA = { |
This file contains 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
Creekside Major | |
https://www.airbnb.com/rooms/20266610?adults=8&children=3&infants=1&check_in=2020-05-28&check_out=2020-05-31&source_impression_id=p3_1580136615_Sxix5oSNj2u9lZfw | |
The Heritage | |
https://www.airbnb.com/rooms/23187228?adults=8&children=3&infants=1&check_in=2020-05-28&check_out=2020-05-31&source_impression_id=p3_1580136791_l%2Fdu8OU7gAPWqu0H | |
Rockgrist | |
https://www.airbnb.com/rooms/14909355?adults=8&children=3&infants=1&check_in=2020-05-28&check_out=2020-05-31&source_impression_id=p3_1580136803_wAu0e%2FiGC0Y6CNVP | |
Manning House |
This file contains 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
["https://phish.in/2003-08-02/tower-jam", "https://phish.in/1997-11-29/runaway-jim", "https://phish.in/2003-08-01/jam-skin-it-back-jam", "https://phish.in/2011-07-02/storage-jam", "https://phish.in/1998-08-15/ambient-jam", "https://phish.in/1995-06-14/tweezer", "https://phish.in/2015-08-22/drive-in-jam", "https://phish.in/2015-08-20/jam", "https://phish.in/1997-08-16/the-disco-set", "https://phish.in/1994-11-28/tweezer-digital-delay-loop-jam-tweezer", "https://phish.in/1995-06-22/tweezer", "https://phish.in/1995-10-31/you-enjoy-myself", "https://phish.in/2004-08-13/jam", "https://phish.in/2003-08-03/46-days", "https://phish.in/2019-07-14/ruby-waves", "https://phish.in/1994-11-26/david-bowie", "https://phish.in/2017-09-01/soundcheck-jam", "https://phish.in/1995-10-17/jam", "https://phish.in/2013-07-31/tweezer", "https://phish.in/1995-06-10/mikes-song-i-am-hydrogen-weekapaug-groove", "https://phish.in/1994-12-29/digital-delay-loop-jam-david-bowie", "https://phish.in/2019-12-30/tweezer", "https://phish.in/1999-1 |
This file contains 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
# initialization file (not found) |
This file contains 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
# Javascript | |
var x = 2; | |
var z = x + y; | |
alert(z); | |
var y = 3; |