Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 243d7da

Browse files
committed
Remove stringify-struct entry from simd-json
This code is not benchmarking simd-json.
1 parent 3b24022 commit 243d7da

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/main.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ macro_rules! bench_file_simd_json {
140140
vec
141141
};
142142

143-
144143
#[cfg(feature = "parse-dom")]
145144
{
146145
use timer::Benchmark;
@@ -190,22 +189,6 @@ macro_rules! bench_file_simd_json {
190189
print!("{:6} MB/s", throughput(dur, contents.len()));
191190
io::stdout().flush().unwrap();
192191
}
193-
#[cfg(not(feature = "parse-struct"))]
194-
print!(" ");
195-
196-
#[cfg(feature = "stringify-struct")]
197-
{
198-
let len = contents.len();
199-
let mut data = contents.clone();
200-
let parsed: $structure = simd_json_parse_struct(&mut data).unwrap();
201-
let dur = timer::bench_with_buf(num_trials, len, |out| {
202-
serde_json::to_writer(out, &parsed).unwrap()
203-
});
204-
let mut serialized = Vec::new();
205-
serde_json::to_writer(&mut serialized, &parsed).unwrap();
206-
print!("{:6} MB/s", throughput(dur, serialized.len()));
207-
io::stdout().flush().unwrap();
208-
}
209192

210193
println!();
211194
}

0 commit comments

Comments
 (0)