-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cldr.Currency.currency_for_code/3 support t:Cldr.Currency structs. Cl…
…oses #4
- Loading branch information
Showing
18 changed files
with
697 additions
and
601 deletions.
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
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,16 @@ | ||
{:ok, currency} = Cldr.Currency.currency_for_code(:AUD, MyApp.Cldr) | ||
|
||
Benchee.run( | ||
%{ | ||
"with precompiled currency" => fn -> | ||
Cldr.Currency.currency_for_code(currency, MyApp.Cldr) | ||
end, | ||
|
||
"without precompiled currency" => fn -> | ||
Cldr.Currency.currency_for_code(:AUD, MyApp.Cldr) | ||
end, | ||
|
||
}, | ||
time: 10, | ||
memory_time: 2 | ||
) |
Oops, something went wrong.