Skip to content

xiaopong/ulid-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ulid-zig

Zig implementation of the ulid project, providing Universally Unique Lexicographically Sortable Identifiers.

Usage

See examples in example.zig for more details.

Benchmark

Half-hearted attempt benchmarking on an old Mac laptop:

Model        : MacBook Pro 2018
Processor    : 2.2 GHz 6-Core Intel Core i7
Memory       : 16 GB 2400 MHz DDR4

Zig version:

Zig version  : 0.14.0-dev.296+bd7b2cc4b
Build option : --release=fast

Benchmark resuls:

Generated 100000000 ULIDs in 5.447s
Average: 54.465ns per ULID
Rate: 18.36M ULIDs/second

See the codes in main.zig for more information.

About

Zig implementation of the ulid project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages