-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
265c67e
commit 11752d8
Showing
3 changed files
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
alias UUIDv7.Clock | ||
|
||
{:ok, _pid} = Clock.start_link([]) | ||
|
||
Benchee.run(%{ | ||
"uuid_v7 raw" => fn -> | ||
UUIDv7.bingenerate() | ||
end, | ||
"uuid_v7 string" => fn -> | ||
UUIDv7.generate() | ||
end, | ||
"uniq v7 raw" => fn -> | ||
Uniq.UUID.uuid7(:raw) | ||
end, | ||
"uniq v7 string" => fn -> | ||
Uniq.UUID.uuid7(:default) | ||
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
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