Skip to content
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

[core] add uuidv7 support #2746

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

seven1240
Copy link
Collaborator

@seven1240 seven1240 commented Jan 20, 2025

this is a different implementation than #2734

@seven1240
Copy link
Collaborator Author

v7 looks much faster than v4

2025-01-20 22:45:34.157636 100.00% [DEBUG] switch_core.c:599 test_create_uuid_speed:
2025-01-20 22:45:34.157636 100.00% [DEBUG] switch_core.c:610 10000 uuidv7_new running time: 0.000832 seconds
2025-01-20 22:45:34.196881 100.00% [DEBUG] switch_core.c:619 10000 uuid_generate running time: 0.036450 seconds
2025-01-20 22:45:34.196881 100.00% [DEBUG] switch_core.c:610 100000 uuidv7_new running time: 0.005779 seconds
2025-01-20 22:45:34.440331 99.90% [DEBUG] switch_core.c:619 100000 uuid_generate running time: 0.267279 seconds
2025-01-20 22:45:34.519784 99.90% [DEBUG] switch_core.c:610 1000000 uuidv7_new running time: 0.050283 seconds
2025-01-20 22:45:37.200556 98.83% [DEBUG] switch_core.c:619 1000000 uuid_generate running time: 2.718588 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant