Skip to content

Commit 95c3d35

Browse files
authored
Add CRINEX3 benchmark (#320)
Signed-off-by: Guillaume W. Bres <[email protected]>
1 parent 4575997 commit 95c3d35

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

benches/formatting.rs

+10
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ fn benchmark(c: &mut Criterion) {
5959
rinex_formatting(&rinex, &mut buffer);
6060
})
6161
});
62+
63+
// Small CRINEX (V3)
64+
let rinex = rinex.rnx2crnx();
65+
66+
formatting_grp.bench_function("CRNX/V3", |b| {
67+
b.iter(|| {
68+
rinex_formatting(&rinex, &mut buffer);
69+
})
70+
});
71+
6272
formatting_grp.finish();
6373
}
6474

src/hatanaka/compressor.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,12 @@ impl<const M: usize> CompressorExpert<M> {
136136

137137
if let Some(clk) = v.clock {
138138
// TODO: clock is not correctly supported yet
139-
writeln!(w, "{}", clk.offset_s)?;
139+
if !self.epoch_compression {
140+
writeln!(w, "{}", clk.offset_s)?;
141+
}
140142
} else {
141143
// No clock: BLANKed line
142-
writeln!(w, "{}", "")?;
144+
write!(w, "\n")?;
143145
}
144146

145147
// For each SV

0 commit comments

Comments
 (0)