Avatar for the pydantic user
pydantic
pydantic-core
BlogDocsChangelog

use Uuid:::from_u128 for uuid_to_string

#1362Merged
Comparing
fft001:uuid-to-string
(
9db046f
) with
main
(
0e6b377
)
CodSpeed Performance Gauge
+47%
Improvement
1
Untouched
154

Benchmarks

155 total
test_uuid
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+47%
33.5 µs22.7 µs
test_complete_core_serializer_to_json
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+4%
288 µs277.6 µs
test_strict_union_error_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+3%
32.7 µs31.8 µs
test_validate_literal[python-few_ints]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
14.4 µs14.1 µs
test_validate_literal[python-many_small_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
14.5 µs14.2 µs
test_validate_literal[python-many_large_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
14.7 µs14.3 µs
test_validate_literal[python-few_small_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
14.6 µs14.3 µs
test_enum_str_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
14.8 µs14.5 µs
test_core_raw
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+2%
13.6 µs13.4 µs
test_validate_literal[python-few_str_enum]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
15.1 µs14.8 µs
test_bytes_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
13.4 µs13.1 µs
test_validate_literal[python-many_ints]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
14.4 µs14.2 µs
test_int_range
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
14.6 µs14.3 µs
test_validate_literal[python-few_mixed]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
16.8 µs16.5 µs
test_strict_int
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
13.4 µs13.2 µs
test_core_string_lax
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
13.4 µs13.2 µs
test_isinstance_string_strict_true
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
13.6 µs13.4 µs
test_small_class_core_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
30.7 µs30.2 µs
test_uuid_from_uuid_pyd
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+1%
14.4 µs14.2 µs
test_validate_literal[python-few_large_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
14.6 µs14.4 µs
test_int_error
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
40.2 µs39.7 µs
test_isinstance_string_lax_false
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.3 µs15.1 µs
test_small_class_core_dict
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
19 µs18.8 µs
test_chain_two_functions
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
28.5 µs28.2 µs
test_enum_int_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.3 µs15.1 µs

Commits

Click on a commit to change the comparison range
Base
main
0e6b377
+35.91%
use Uuid:::from_u128 for uuid_to_string
8d7f211
2 years ago
by fft001
+11.5%
use py03 intern macro
9db046f
2 years ago
by fft001
© 2026 CodSpeed Technology
Home Terms Privacy Docs