Avatar for the pydantic user
pydantic
monty
BlogDocsChangelog

Implement `hasattr` builtin function

#66
Comparing
hasattr
(
0e8a4ba
) with
main
(
23ff7eb
)
CodSpeed Performance Gauge
0%
Untouched
15

Benchmarks

15 total
json_dumps__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
34 ms33.8 ms
list_comp__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
290.9 µs289.3 µs
json_loads__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
50.7 ms50.5 ms
kitchen_sink__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
64.4 µs64.2 µs
empty_tuples__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
30.3 ms30.3 ms
list_append_int__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
48.1 ms48.1 ms
fib__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
171.9 ms171.9 ms
list_append_str__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
130.5 ms130.5 ms
pair_tuples__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
94.2 ms94.2 ms
dict_comp__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
620.5 µs620.6 µs
loop_mod_13__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
326.5 µs326.6 µs
end_to_end__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
45.4 µs45.7 µs
func_call_kwargs__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
21.3 µs21.4 µs
list_append__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
16.1 µs16.3 µs
add_two__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-2%
11.1 µs11.3 µs

Commits

Click on a commit to change the comparison range
Base
main
23ff7eb
+0.42%
implement has_attr
873ee89
3 months ago
by friendlymatthew
-0.58%
Merge branch 'main' into hasattr
0e8a4ba
2 days ago
by davidhewitt
© 2026 CodSpeed Technology
Home Terms Privacy Docs