Avatar for the zarr-developers user
zarr-developers
cast-value.py
BlogDocsChangelog

docs: add doctests

#14Merged
Comparing
d-v-b:docs/add-doctests
(
665d628
) with
main
(
0e3b66d
)
CodSpeed Performance Gauge
0%
Untouched
48

Benchmarks

48 total
test_int_to_int_clamp[numpy-10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
+2%
228.8 µs223.7 µs
test_float_to_float_narrow[rs-100]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
+2%
79.1 µs77.9 µs
test_float64_to_uint8_clamp[rs-10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
+1%
139.3 µs137.5 µs
test_scalar_map_rs[100]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
+1%
86.7 µs85.8 µs
test_float_to_int_round[rs-10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
+1%
183.9 µs182.4 µs
test_scalar_map_rs[10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
+1%
363.9 µs362 µs
test_float_to_float_towards_zero[rs-10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
+1%
293.5 µs292 µs
test_float64_to_int32_clamp[numpy-100]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
183.4 µs182.6 µs
test_float64_to_uint8_clamp[numpy-100]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
181.2 µs180.5 µs
test_float_to_float_towards_zero[numpy-10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_int_to_int_clamp[numpy-100]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
184.9 µs184.3 µs
test_scalar_map_numpy[100]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
202.2 µs201.7 µs
test_float64_to_uint8_clamp[rs-100]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
80.4 µs80.2 µs
test_float64_to_int32_clamp[rs-100]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
81.6 µs81.4 µs
test_float_to_float_narrow[numpy-10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
143.5 µs143.3 µs
test_int_to_float_widen[rs-10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
183.7 µs183.4 µs
test_float64_to_uint8_clamp[numpy-10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
449.8 µs449.2 µs
test_scalar_map_numpy[10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
571.7 µs571 µs
test_float_to_int_round[numpy-100]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
163.5 µs163.3 µs
test_float64_to_int32_clamp[numpy-10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
471.4 µs470.9 µs
test_float_to_float_narrow[numpy-100]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
80 µs79.9 µs
test_float_to_int_round[numpy-10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
424.6 µs424.2 µs
test_int_to_float_widen[numpy-100]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
79.1 µs79 µs
test_float64_to_int32_clamp[rs-10k]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
177.7 µs177.6 µs
test_float_to_int_round[rs-100]
tests/benchmark/test_cast_perf.py
CodSpeed Performance Gauge
0%
81.5 µs81.4 µs

Commits

Click on a commit to change the comparison range
Base
main
0e3b66d
+0.17%
docs: add doctests
665d628
23 days ago
by d-v-b
© 2026 CodSpeed Technology
Home Terms Privacy Docs