From 2ca51225285a6bde4139657919a0583ce56065dc Mon Sep 17 00:00:00 2001 From: azim Date: Mon, 18 Nov 2024 16:20:50 +0100 Subject: [PATCH] fix the bug --- publication/compression_ratio_result/float/patas.csv | 8 ++++---- publication/compression_ratio_result/float/zstd.csv | 8 ++++---- publication/source_code/bench_compression_ratio/zstd.cpp | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/publication/compression_ratio_result/float/patas.csv b/publication/compression_ratio_result/float/patas.csv index d185cab..4cbcec8 100644 --- a/publication/compression_ratio_result/float/patas.csv +++ b/publication/compression_ratio_result/float/patas.csv @@ -1,5 +1,5 @@ dataset,size,vectors_count -Dino-Vitb16,35.25,84364 -GPT2,35.24,121523 -Grammarly-lg,35.23,764739 -WAV2VEC,26.28,92183 +Dino-Vitb16,45.81,84364 +GPT2,45.63,121523 +Grammarly-lg,45.51,764739 +WAV2VEC,34.81,92183 diff --git a/publication/compression_ratio_result/float/zstd.csv b/publication/compression_ratio_result/float/zstd.csv index dbf9baf..59c84e1 100644 --- a/publication/compression_ratio_result/float/zstd.csv +++ b/publication/compression_ratio_result/float/zstd.csv @@ -1,5 +1,5 @@ dataset,size -Dino-Vitb16,14.87 -GPT2,14.85 -Grammarly-lg,14.82 -WAV2VEC,9.55 +Dino-Vitb16,29.74 +GPT2,29.69 +Grammarly-lg,29.65 +WAV2VEC,19.11 diff --git a/publication/source_code/bench_compression_ratio/zstd.cpp b/publication/source_code/bench_compression_ratio/zstd.cpp index d25c77b..f243399 100644 --- a/publication/source_code/bench_compression_ratio/zstd.cpp +++ b/publication/source_code/bench_compression_ratio/zstd.cpp @@ -64,7 +64,7 @@ class zstd_test : public ::testing::Test { ZSTD_compress(enc_dbl_arr, enc_size_upper_bound, dbl_arr, input_size, 3); // Level 3 // SUM COMPRESSED SIZE - compressed_data_size += ENC_SIZE * sizeof(T); + compressed_data_size += ENC_SIZE * 8; // Decode ZSTD_decompress(dec_dbl_arr, dec_size, enc_dbl_arr, ENC_SIZE);