-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change data storage to files #461
Open
laraujo7
wants to merge
1
commit into
elixirs:master
Choose a base branch
from
laraujo7:data_storage
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+313
−4
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Change data storage to files
commit 24d0b82505bcdb79fc0daea80f8e3e8200f9f978
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
defmodule Benchemarking do | ||
|
||
def run do | ||
test_country() | ||
end | ||
|
||
defp test_country do | ||
Benchee.run(%{ | ||
"country_test_from_list" => fn -> Faker.Address.En.country end, | ||
"country_test_from_file" => fn -> Faker.Address.En.country_test end | ||
}, | ||
formatters: [ | ||
Benchee.Formatters.HTML, | ||
Benchee.Formatters.Console | ||
]) | ||
end | ||
end | ||
|
||
Benchemarking.run |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,245 @@ | ||
Afghanistan | ||
Albania | ||
Algeria | ||
American Samoa | ||
Andorra | ||
Angola | ||
Anguilla | ||
Antarctica (the territory South of 60 deg S) | ||
Antigua and Barbuda | ||
Argentina | ||
Armenia | ||
Aruba | ||
Australia | ||
Austria | ||
Azerbaijan | ||
Bahamas | ||
Bahrain | ||
Bangladesh | ||
Barbados | ||
Belarus | ||
Belgium | ||
Belize | ||
Benin | ||
Bermuda | ||
Bhutan | ||
Bolivia | ||
Bosnia and Herzegovina | ||
Botswana | ||
Bouvet Island (Bouvetoya) | ||
Brazil | ||
British Indian Ocean Territory (Chagos Archipelago) | ||
Brunei Darussalam | ||
Bulgaria | ||
Burkina Faso | ||
Burundi | ||
Cambodia | ||
Cameroon | ||
Canada | ||
Cape Verde | ||
Cayman Islands | ||
Central African Republic | ||
Chad | ||
Chile | ||
China | ||
Christmas Island | ||
Cocos (Keeling) Islands | ||
Colombia | ||
Comoros | ||
Congo | ||
Congo | ||
Cook Islands | ||
Costa Rica | ||
Cote d'Ivoire | ||
Croatia | ||
Cuba | ||
Cyprus | ||
Czech Republic | ||
Denmark | ||
Djibouti | ||
Dominica | ||
Dominican Republic | ||
Ecuador | ||
Egypt | ||
El Salvador | ||
Equatorial Guinea | ||
Eritrea | ||
Estonia | ||
Ethiopia | ||
Faroe Islands | ||
Falkland Islands (Malvinas) | ||
Fiji | ||
Finland | ||
France | ||
French Guiana | ||
French Polynesia | ||
French Southern Territories | ||
Gabon | ||
Gambia | ||
Georgia | ||
Germany | ||
Ghana | ||
Gibraltar | ||
Greece | ||
Greenland | ||
Grenada | ||
Guadeloupe | ||
Guam | ||
Guatemala | ||
Guernsey | ||
Guinea | ||
Guinea-Bissau | ||
Guyana | ||
Haiti | ||
Heard Island and McDonald Islands | ||
Holy See (Vatican City State) | ||
Honduras | ||
Hong Kong | ||
Hungary | ||
Iceland | ||
India | ||
Indonesia | ||
Iran | ||
Iraq | ||
Ireland | ||
Isle of Man | ||
Israel | ||
Italy | ||
Jamaica | ||
Japan | ||
Jersey | ||
Jordan | ||
Kazakhstan | ||
Kenya | ||
Kiribati | ||
Democratic People's Republic of Korea | ||
Republic of Korea | ||
Kuwait | ||
Kyrgyz Republic | ||
Lao People's Democratic Republic | ||
Latvia | ||
Lebanon | ||
Lesotho | ||
Liberia | ||
Libyan Arab Jamahiriya | ||
Liechtenstein | ||
Lithuania | ||
Luxembourg | ||
Macao | ||
Macedonia | ||
Madagascar | ||
Malawi | ||
Malaysia | ||
Maldives | ||
Mali | ||
Malta | ||
Marshall Islands | ||
Martinique | ||
Mauritania | ||
Mauritius | ||
Mayotte | ||
Mexico | ||
Micronesia | ||
Moldova | ||
Monaco | ||
Mongolia | ||
Montenegro | ||
Montserrat | ||
Morocco | ||
Mozambique | ||
Myanmar | ||
Namibia | ||
Nauru | ||
Nepal | ||
Netherlands Antilles | ||
Netherlands | ||
New Caledonia | ||
New Zealand | ||
Nicaragua | ||
Niger | ||
Nigeria | ||
Niue | ||
Norfolk Island | ||
Northern Mariana Islands | ||
Norway | ||
Oman | ||
Pakistan | ||
Palau | ||
Palestinian Territory | ||
Panama | ||
Papua New Guinea | ||
Paraguay | ||
Peru | ||
Philippines | ||
Pitcairn Islands | ||
Poland | ||
Portugal | ||
Puerto Rico | ||
Qatar | ||
Reunion | ||
Romania | ||
Russian Federation | ||
Rwanda | ||
Saint Barthelemy | ||
Saint Helena | ||
Saint Kitts and Nevis | ||
Saint Lucia | ||
Saint Martin | ||
Saint Pierre and Miquelon | ||
Saint Vincent and the Grenadines | ||
Samoa | ||
San Marino | ||
Sao Tome and Principe | ||
Saudi Arabia | ||
Senegal | ||
Serbia | ||
Seychelles | ||
Sierra Leone | ||
Singapore | ||
Slovakia (Slovak Republic) | ||
Slovenia | ||
Solomon Islands | ||
Somalia | ||
South Africa | ||
South Georgia and the South Sandwich Islands | ||
Spain | ||
Sri Lanka | ||
Sudan | ||
Suriname | ||
Svalbard & Jan Mayen Islands | ||
Swaziland | ||
Sweden | ||
Switzerland | ||
Syrian Arab Republic | ||
Taiwan | ||
Tajikistan | ||
Tanzania | ||
Thailand | ||
Timor-Leste | ||
Togo | ||
Tokelau | ||
Tonga | ||
Trinidad and Tobago | ||
Tunisia | ||
Turkey | ||
Turkmenistan | ||
Turks and Caicos Islands | ||
Tuvalu | ||
Uganda | ||
Ukraine | ||
United Arab Emirates | ||
United Kingdom | ||
United States of America | ||
United States Minor Outlying Islands | ||
Uruguay | ||
Uzbekistan | ||
Vanuatu | ||
Venezuela | ||
Vietnam | ||
Virgin Islands, British | ||
Virgin Islands, U.S. | ||
Wallis and Futuna | ||
Western Sahara | ||
Yemen | ||
Zambia | ||
Zimbabw |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should call transform_into_map, right? @laraujo7