Skip to content

Commit

Permalink
Fix test sizes again
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Jul 20, 2023
1 parent c20b1d8 commit 8f05cdf
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions crates/re_components/tests/data_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ fn data_table_sizes_basics() {
expect(
cell.clone(), //
10_000, // num_rows
2_770_072, // expected_num_bytes
2_690_064, // expected_num_bytes
);
expect(
DataCell::from_arrow("some_bools".into(), cell.to_arrow().sliced(1, 1)),
10_000, // num_rows
2_770_072, // expected_num_bytes
2_690_064, // expected_num_bytes
);

// primitive
Expand All @@ -54,12 +54,12 @@ fn data_table_sizes_basics() {
expect(
cell.clone(), //
10_000, // num_rows
2_920_072, // expected_num_bytes
2_840_064, // expected_num_bytes
);
expect(
DataCell::from_arrow("some_u64s".into(), cell.to_arrow().sliced(1, 1)),
10_000, // num_rows
2_760_072, // expected_num_bytes
2_680_064, // expected_num_bytes
);

// utf8 (and more generally: dyn_binary)
Expand All @@ -75,12 +75,12 @@ fn data_table_sizes_basics() {
expect(
cell.clone(), //
10_000, // num_rows
3_170_072, // expected_num_bytes
3_090_064, // expected_num_bytes
);
expect(
DataCell::from_arrow(re_components::Label::name(), cell.to_arrow().sliced(1, 1)),
10_000, // num_rows
3_030_072, // expected_num_bytes
2_950_064, // expected_num_bytes
);

// struct
Expand All @@ -96,12 +96,12 @@ fn data_table_sizes_basics() {
expect(
cell.clone(), //
10_000, // num_rows
5_340_072, // expected_num_bytes
5_260_064, // expected_num_bytes
);
expect(
DataCell::from_arrow(re_components::Point2D::name(), cell.to_arrow().sliced(1, 1)),
10_000, // num_rows
5_180_072, // expected_num_bytes
5_100_064, // expected_num_bytes
);

// struct + fixedsizelist
Expand All @@ -117,12 +117,12 @@ fn data_table_sizes_basics() {
expect(
cell.clone(), //
10_000, // num_rows
4_160_072, // expected_num_bytes
4_080_064, // expected_num_bytes
);
expect(
DataCell::from_arrow(re_components::Point2D::name(), cell.to_arrow().sliced(1, 1)),
10_000, // num_rows
4_000_072, // expected_num_bytes
3_920_064, // expected_num_bytes
);

// variable list
Expand All @@ -138,12 +138,12 @@ fn data_table_sizes_basics() {
expect(
cell.clone(), //
10_000, // num_rows
6_200_072, // expected_num_bytes
6_120_064, // expected_num_bytes
);
expect(
DataCell::from_arrow(re_components::Point2D::name(), cell.to_arrow().sliced(1, 1)),
10_000, // num_rows
5_640_072, // expected_num_bytes
5_560_064, // expected_num_bytes
);
}

Expand Down Expand Up @@ -215,7 +215,7 @@ fn data_table_sizes_unions() {
.as_slice(),
),
10_000, // num_rows
49_110_072, // expected_num_bytes
49_030_064, // expected_num_bytes
);

// dense union (varying)
Expand All @@ -239,7 +239,7 @@ fn data_table_sizes_unions() {
.as_slice(),
),
10_000, // num_rows
49_100_072, // expected_num_bytes
49_020_064, // expected_num_bytes
);

// --- Sparse ---
Expand Down Expand Up @@ -272,7 +272,7 @@ fn data_table_sizes_unions() {
.as_slice(),
),
10_000, // num_rows
22_260_072, // expected_num_bytes
22_180_064, // expected_num_bytes
);

// sparse union (varying)
Expand All @@ -289,6 +289,6 @@ fn data_table_sizes_unions() {
.as_slice(),
),
10_000, // num_rows
21_810_072, // expected_num_bytes
21_730_064, // expected_num_bytes
);
}

0 comments on commit 8f05cdf

Please sign in to comment.