Change the standard Input impl to support any slice

#1810
Comparing
marcdejonge:generic-input-implementation
(
765bfa8
) with
main
(
a44b52e
)
CodSpeed Performance Gauge
+36%
Improvements
2
Regressions
0
Untouched
22
New
0
Dropped
0
Ignored
0

Benchmarks

Improved

float bytes streaming
benchmarks/benches/json_streaming.rs::benches::float_bytes::float bytes streaming
CodSpeed Performance Gauge
+36%
748.6 ns
551.4 ns
float bytes
benchmarks/benches/json.rs::benches::float_bytes::float bytes
CodSpeed Performance Gauge
+11%
1.9 µs
1.7 µs

Passed

parse[18]
benchmarks/benches/ini.rs::benches::bench_ini_key_value::ini key value::parse[18]
CodSpeed Performance Gauge
+10%
1.1 µs
1 µs
std_float bytes streaming
benchmarks/benches/json_streaming.rs::benches::std_float_bytes::std_float bytes streaming
CodSpeed Performance Gauge
+8%
1.9 µs
1.7 µs
recognize float str
benchmarks/benches/json.rs::benches::recognize_float_str::recognize float str
CodSpeed Performance Gauge
+8%
800.6 ns
742.2 ns
std_float bytes
benchmarks/benches/json.rs::benches::std_float_bytes::std_float bytes
CodSpeed Performance Gauge
+6%
1.8 µs
1.7 µs
parse[291]
benchmarks/benches/http.rs::http::one_test::http::parse[291]
CodSpeed Performance Gauge
+5%
8.5 µs
8.1 µs
parse[110]
benchmarks/benches/ini.rs::benches::bench_ini::ini::parse[110]
CodSpeed Performance Gauge
+3%
7.4 µs
7.2 µs
parse[45]
benchmarks/benches/ini.rs::benches::bench_ini_keys_and_values::ini keys and values::parse[45]
CodSpeed Performance Gauge
+3%
2.5 µs
2.5 µs
arithmetic
benchmarks/benches/arithmetic.rs::benches::arithmetic::arithmetic
CodSpeed Performance Gauge
+3%
4.3 µs
4.2 µs
float str streaming
benchmarks/benches/json_streaming.rs::benches::float_str::float str streaming
CodSpeed Performance Gauge
+2%
2.6 µs
2.5 µs
parse_streaming[291]
benchmarks/benches/http_streaming.rs::http_streaming::one_test::http::parse_streaming[291]
CodSpeed Performance Gauge
+1%
8.8 µs
8.7 µs
json streaming
benchmarks/benches/json_streaming.rs::benches::json_bench::json streaming
CodSpeed Performance Gauge
0%
23.5 µs
23.4 µs
parse[109]
benchmarks/benches/ini_str.rs::benches::bench_ini_str::ini str::parse[109]
CodSpeed Performance Gauge
0%
9.1 µs
9.1 µs
json canada
benchmarks/benches/json.rs::benches::canada_json::json canada
CodSpeed Performance Gauge
0%
80.6 ms
80.6 ms
recognize float str streaming
benchmarks/benches/json_streaming.rs::benches::recognize_float_str::recognize float str streaming
CodSpeed Performance Gauge
0%
1.6 µs
1.6 µs
json
benchmarks/benches/json.rs::benches::json_bench_error_check::json
CodSpeed Performance Gauge
0%
21.3 µs
21.3 µs
json canada verbose
benchmarks/benches/json.rs::benches::verbose_canada_json::json canada verbose
CodSpeed Performance Gauge
0%
97.8 ms
98 ms
json
benchmarks/benches/json.rs::benches::json_bench::json
CodSpeed Performance Gauge
0%
23.3 µs
23.3 µs
json verbose
benchmarks/benches/json.rs::benches::verbose_json::json verbose
CodSpeed Performance Gauge
-1%
27.8 µs
28.1 µs
float str
benchmarks/benches/json.rs::benches::float_str::float str
CodSpeed Performance Gauge
-5%
1.7 µs
1.8 µs
recognize float bytes
benchmarks/benches/json.rs::benches::recognize_float_bytes::recognize float bytes
CodSpeed Performance Gauge
N/A
728.6 ns
< 1 ns
recognize float bytes streaming
benchmarks/benches/json_streaming.rs::benches::recognize_float_bytes::recognize float bytes streaming
CodSpeed Performance Gauge
N/A
688.6 ns
< 1 ns
number
benchmarks/benches/number.rs::benches::number::number
CodSpeed Performance Gauge
N/A
244.2 ns
< 1 ns

Commits

Click on a commit to change the comparison range
Base
main
a44b52e
+36%
Fix the benchmarks
b508487
2 months ago
by marcdejonge
0%
Fix the fuzzer to use a new version of upload-artifact
765bfa8
2 months ago
by marcdejonge
© 2025 CodSpeed Technology