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
➜ ~ ruby bench.rb | |
Insert | |
42.104111 3.434922 45.539033 ( 55.802749) | |
Read | |
69.184693 0.390934 69.575627 ( 73.027861) | |
Delete | |
0.001263 0.000044 0.001307 ( 0.666274) |
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
+------------+--------------------------+-------------------------------------------------------------+------------+------+ | |
| af | Afrikaans | Omtrent 2 700 000 000 resultate (0,57 sekondes) | 2700000000 | 0.57 | | |
| ak | Akan | Ɛfa 3,190,000,000 nsunsuansoɔ ho (pare 0.54 ) | 3190000000 | 0.54 | | |
| sq | Albanian | Rreth 3 750 000 000 rezultate ( 0,56 sekonda) | 3750000000 | 0.56 | | |
| am | Amharic | ወደ 3,470,000,000 የሚደርሱ ውጤቶች (0.71 ሴኮንድ) | 3470000000 | 0.71 | | |
| ar | Arabic | حوالي 3,790,000,000 من النتائج (عدد الثواني: 0.67) | 3790000000 | 0.67 | | |
| hy | Armenian | About 3 710 000 000 results (0,63 seconds) | 3710000000 | 0.63 | | |
| az | Azerbaijani | About 3.440.000.000 results (0,76 saniyə) | 0.0 | 0.76 | | |
| eu | Basque |
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
[{:hl=>"af", :language=>"Afrikaans", :raw_text=>"Omtrent 2 700 000 000 resultate (0,57 sekondes) ", :total_results=>2700000000, :time_taken_displayed=>0.57}, | |
{:hl=>"ak", :language=>"Akan", :raw_text=>"Ɛfa 3,190,000,000 nsunsuansoɔ ho (pare 0.54 ) ", :total_results=>3190000000, :time_taken_displayed=>0.54}, | |
{:hl=>"sq", :language=>"Albanian", :raw_text=>"Rreth 3 750 000 000 rezultate ( 0,56 sekonda) ", :total_results=>3750000000, :time_taken_displayed=>0.56}, | |
{:hl=>"am", :language=>"Amharic", :raw_text=>"ወደ 3,470,000,000 የሚደርሱ ውጤቶች (0.71 ሴኮንድ) ", :total_results=>3470000000, :time_taken_displayed=>0.71}, | |
{:hl=>"ar", :language=>"Arabic", :raw_text=>"حوالي 3,790,000,000 من النتائج (عدد الثواني: 0.67) ", :total_results=>3790000000, :time_taken_displayed=>0.67}, | |
{:hl=>"hy", :language=>"Armenian", :raw_text=>"About 3 710 000 000 results (0,63 seconds) ", :total_results=>3710000000, :time_taken_displayed=>0.63}, | |
{:hl=>"az", :language=>"Azerbaijani", :raw_text=>"About 3.440.000.000 results (0,76 saniyə) ", :tota |
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
➜ files tune2fs -l /dev/vda1 | |
tune2fs 1.44.1 (24-Mar-2018) | |
Filesystem volume name: <none> | |
Last mounted on: / | |
Filesystem UUID: 133a1e39-8da9-4120-92e1-4b54f8281f1b | |
Filesystem magic number: 0xEF53 | |
Filesystem revision #: 1 (dynamic) | |
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum | |
Filesystem flags: signed_directory_hash | |
Default mount options: user_xattr acl |
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
1] pry(main)> | |
[2] pry(main)> | |
[3] pry(main)> | |
[4] pry(main)> require 'digest' | |
=> true | |
[5] pry(main)> require 'benchmark' | |
=> true | |
[6] pry(main)> require 'open-uri' | |
=> true | |
[7] pry(main)> |
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
require 'digest' | |
require 'benchmark' | |
require 'open-uri' | |
keys = [] | |
10_000_000.times do | |
keys << Digest::MD5.hexdigest(rand.to_s) | |
end |
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
➜ files pry | |
[1] pry(main)> | |
[2] pry(main)> | |
[3] pry(main)> | |
[4] pry(main)> require 'digest' | |
=> true | |
[5] pry(main)> require 'benchmark' | |
=> true | |
[6] pry(main)> | |
[7] pry(main)> hash = {} |
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
require 'digest' | |
require 'benchmark' | |
hash = {} | |
10_000_000.times do | |
key = Digest::MD5.hexdigest(rand.to_s) | |
value = Digest::MD5.hexdigest(rand.to_s) | |
hash[key] = value | |
end |
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
{:search_information=> | |
{:total_results=>524000000, | |
:time_taken=>0.81, | |
:query=>"coffee", | |
:location=>"Portland, Oregon"}, | |
:serp_api_data=> | |
{:total_time_taken=>2.474232757, | |
:google_url=> | |
"https://www.google.com/search?q=coffee&oq=coffee&uule=w+CAIQICIdUG9ydGxhbmQsT3JlZ29uLFVuaXRlZCBTdGF0ZXM&sourceid=chrome&ie=UTF-8"}, | |
:ads=> |
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
{:search_information=> | |
{:total_results=>530000000, | |
:time_taken=>0.83, | |
:query=>"coffee", | |
:location=>"Portland, Oregon"}, | |
:serp_api_data=> | |
{:total_time_taken=>55.875552451, | |
:google_url=> | |
"https://www.google.com/search?q=coffee&oq=coffee&uule=w+CAIQICIdUG9ydGxhbmQsT3JlZ29uLFVuaXRlZCBTdGF0ZXM&sourceid=chrome&ie=UTF-8"}, | |
:ads=> |