/* * Copyright 2019 Yuta Hirokawa (University of Tsukuba, Japan) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #ifdef HAVE_GETTIMEOFDAY #include #endif #include #include #include "config.h" #define CBSL_ERROR_CHECK(X) {if ((X) == cbsl_error) { fprintf(stderr, "error: %s\n", (#X)); exit(1); }} typedef unsigned char byte_t; extern void deserialize_bench(double ds); extern double seconds(); int main(int argc, char** argv) { if (argc <= 2) exit(1); int max_data_size_exp2, min_data_size_exp2; sscanf(argv[1], "%d", &min_data_size_exp2); sscanf(argv[2], "%d", &max_data_size_exp2); printf("min data size = %.2lf [B]\n", pow(2,min_data_size_exp2)); printf("max data size = %.2lf [B]\n", pow(2,max_data_size_exp2)); srand((unsigned int)(time(NULL))); printf("