From: Svetlana Date: Thu, 13 Aug 2020 15:33:29 +0000 (+0000) Subject: NANOS_PER_SEC fixed X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6bb0a9d246a1e9c22379f8326c3939b6ac8f1c3c;p=thirdparty%2Fcollectd.git NANOS_PER_SEC fixed --- diff --git a/distbench/bkjg.csv b/distbench/bkjg.csv index b20fb3779..9949e4148 100644 --- a/distbench/bkjg.csv +++ b/distbench/bkjg.csv @@ -1,11 +1,11 @@ Number of buckets, Update linear, Percentile linear, Mixed linear, Update exponential, Percentile exponential, Mixed exponential, Update custom, Percentile custom, Mixed custom, Update all, Percentile all, Mixed all\n -50, 0.848100, 1.597100, 1.194600, 5.502600, 2.370700, 5.488800, 0.840600, 1.580600, 1.189100, 2.967300, 0.492000, 3.104300 -100, 0.843700, 1.809300, 1.240000, 1844674407283.345947, 3.254900, 15.361900, 0.884300, 1.817800, 1.246200, 4.682900, 0.501300, 4.704200 -150, 0.860500, 1.913000, 1.233500, 16.481000, 2.409400, 15.471900, 0.891500, 1.915300, 1.257600, 6.590500, 0.482400, 1844674407278.415771 -200, 1.167000, 2.074200, 1.287700, 21.892100, 2.510200, 20.055000, 0.946000, 1.991600, 1.341800, 8.389700, 0.485100, 8.269400 -250, 0.924000, 1.954000, 1.301200, 1844674407299.176025, 2.577300, 25.015500, 1.010200, 1.978300, 1.370100, 10.144200, 0.483100, 9.652100 -300, 0.958900, 2.123800, 1.341200, 1844674407304.289795, 2.660700, 29.787600, 1.085000, 2.071600, 1.449800, 12.009900, 0.484100, 11.306900 -350, 1.643000, 3.220600, 2.021700, 1844674407317.648193, 2.554600, 34.320200, 1.181200, 2.082500, 1.541000, 13.828100, 0.483600, 12.888800 -400, 1844674407273.021973, 2.125100, 1.443800, 43.159300, 2.502600, 39.440600, 1.280400, 2.082100, 1.632600, 1844674407287.734375, 0.484900, 14.561800 -450, 1.151500, 2.097500, 1.499200, 48.071000, 2.559100, 1844674407317.906494, 1.549900, 2.287400, 1.873100, 18.340300, 0.481900, 16.143400 -500, 1.180600, 2.101000, 1.540100, 1844674407325.378418, 2.590000, 48.592300, 1.533100, 2.097200, 1.858300, 1844674407291.354004, 0.495200, 18.477800 +50, 0.008322, 0.016121, 0.012072, 0.055342, 0.029217, 0.065678, 0.008391, 0.015720, 0.012056, 0.029841, 0.004851, 0.032054 +100, 0.008424, 0.018157, 0.012258, 0.107742, 0.024942, 0.102899, 0.008593, 0.018395, 0.012484, 0.046753, 0.004845, 0.046941 +150, 0.008667, 0.019511, 0.012386, 0.165327, 0.024164, 0.155075, 0.008919, 0.019559, 0.012708, 0.066756, 0.005077, 0.063810 +200, 0.008900, 0.019271, 0.012775, 0.217945, 0.025036, 0.201244, 0.009575, 0.019576, 0.013125, 0.083693, 0.005035, 0.081435 +250, 0.009482, 0.019770, 0.012907, 0.270545, 0.025436, 0.248744, 0.010059, 0.019964, 0.013759, 0.102142, 0.004938, 0.096725 +300, 0.011745, 0.020736, 0.013325, 0.325333, 0.025059, 0.299535, 0.010989, 0.020885, 0.014597, 0.119631, 0.004874, 0.113114 +350, 0.010047, 0.020546, 0.014889, 0.375026, 0.025403, 0.344301, 0.011854, 0.021163, 0.015322, 0.137501, 0.004855, 0.129040 +400, 0.010558, 0.020624, 0.014263, 0.431192, 0.025729, 0.425205, 0.012839, 0.020902, 0.016323, 0.156202, 0.004839, 0.144650 +450, 0.011936, 0.021801, 0.015074, 0.481669, 0.026767, 0.438522, 0.014858, 0.021091, 0.017474, 0.174002, 0.004921, 0.162074 +500, 0.011956, 0.020937, 0.015536, 0.534769, 0.026588, 0.486586, 0.015809, 0.021162, 0.018577, 0.193770, 0.004879, 0.177203 diff --git a/distbench/main.c b/distbench/main.c index cdb591ef3..4500865b8 100644 --- a/distbench/main.c +++ b/distbench/main.c @@ -23,14 +23,11 @@ } while (0) /* How many nanoseconds there are in a second. */ -#define NANOS_PER_SEC 10000000 +#define NANOS_PER_SEC 1000000000 /* How many microseconds there are in a nanosecond. */ #define MICROS_PER_NANO 1000 -/* How many iterations to run. */ -#define ITERATIONS 10000000 - /* Returns the clock in nanoseconds. */ static uint64_t get_clock() { #if HAVE_CLOCK_GETTIME diff --git a/distbench/margalit.csv b/distbench/margalit.csv index 51b6655be..810e2b399 100644 --- a/distbench/margalit.csv +++ b/distbench/margalit.csv @@ -1,11 +1,11 @@ Number of buckets, Update linear, Percentile linear, Mixed linear, Update exponential, Percentile exponential, Mixed exponential, Update custom, Percentile custom, Mixed custom, Update all, Percentile all, Mixed all\n -50, 1.571300, 7.018200, 2.241200, 2.362100, 3.672200, 2.660600, 1.555400, 6.996700, 2.182500, 2.335300, 0.529100, 2.917300 -100, 1.834100, 11.724300, 2.918300, 2.598100, 3.666400, 1844674407274.875977, 1.848100, 11.965700, 2.922900, 2.662900, 0.550000, 3.516300 -150, 2.119100, 16.259800, 3.737900, 2.668700, 3.640100, 2.911700, 2.122200, 16.200300, 3.811000, 2.843600, 0.517900, 3.964400 -200, 2.113500, 1844674407292.913818, 4.319400, 2.866300, 3.659800, 3.222800, 2.175500, 20.811900, 4.278900, 2.923900, 0.536200, 4.381600 -250, 2.163400, 25.417400, 1844674407276.801270, 3.031800, 3.661800, 3.214400, 2.152400, 25.412200, 4.760100, 2.933900, 0.530900, 4.723400 -300, 2.412800, 30.082600, 5.485200, 1844674407274.914307, 3.691600, 3.276000, 2.439500, 30.165700, 5.522500, 3.087300, 0.538600, 5.210000 -350, 2.409800, 34.786800, 1844674407277.987061, 3.126100, 3.795000, 3.370900, 2.469800, 34.674200, 5.967600, 3.173700, 0.506100, 5.607800 -400, 2.458100, 1844674407311.457764, 6.475400, 3.080600, 3.750900, 3.340400, 2.483300, 39.237000, 6.537900, 3.182400, 0.541900, 5.971100 -450, 2.417600, 1844674407316.185059, 6.912400, 3.098000, 3.663600, 3.387400, 2.482100, 1844674407315.833984, 6.989100, 3.212900, 0.530600, 6.249000 -500, 2.466300, 48.477600, 7.406800, 3.227800, 3.667100, 3.392700, 2.499500, 1844674407320.804932, 7.423100, 3.241700, 0.544500, 6.541000 +50, 0.015642, 0.070080, 0.021870, 0.023947, 0.036626, 0.026680, 0.015922, 0.070616, 0.021797, 0.023379, 0.005376, 0.029311 +100, 0.018652, 0.122824, 0.037761, 0.026257, 0.036903, 0.029566, 0.018795, 0.116855, 0.030067, 0.026597, 0.005440, 0.034967 +150, 0.021070, 0.162295, 0.038067, 0.026987, 0.037011, 0.029327, 0.021542, 0.162250, 0.037983, 0.028454, 0.006193, 0.040554 +200, 0.021339, 0.207530, 0.042745, 0.028422, 0.036698, 0.031697, 0.021963, 0.209597, 0.043105, 0.029196, 0.005388, 0.044663 +250, 0.027942, 0.271873, 0.048491, 0.029923, 0.036672, 0.032072, 0.021542, 0.261130, 0.048566, 0.029788, 0.005379, 0.048091 +300, 0.024698, 0.305539, 0.056424, 0.029594, 0.036745, 0.031768, 0.024651, 0.323078, 0.060475, 0.033142, 0.005587, 0.060334 +350, 0.025222, 0.362464, 0.059960, 0.031087, 0.036687, 0.033866, 0.024640, 0.348562, 0.060545, 0.031854, 0.005280, 0.055853 +400, 0.024370, 0.397760, 0.064889, 0.033105, 0.041086, 0.033957, 0.024884, 0.395472, 0.065742, 0.031893, 0.005456, 0.059894 +450, 0.024883, 0.449746, 0.070291, 0.031380, 0.037023, 0.034197, 0.025368, 0.444091, 0.074292, 0.032824, 0.005535, 0.063832 +500, 0.025001, 0.489591, 0.074020, 0.032158, 0.036827, 0.034305, 0.025043, 0.484221, 0.074163, 0.032443, 0.005345, 0.065827 diff --git a/distbench/sshmidt.csv b/distbench/sshmidt.csv index 18c12ab53..763b5d786 100644 --- a/distbench/sshmidt.csv +++ b/distbench/sshmidt.csv @@ -1,11 +1,11 @@ Number of buckets, Update linear, Percentile linear, Mixed linear, Update exponential, Percentile exponential, Mixed exponential, Update custom, Percentile custom, Mixed custom, Update all, Percentile all, Mixed all\n -50, 1.451100, 2.164100, 1.856700, 2.071800, 3.008600, 2.419700, 1.462400, 2.181600, 1.857200, 2.137800, 0.508400, 2.473500 -100, 1.647600, 2.382000, 1844674407273.998291, 2.245000, 3.013500, 3.637300, 2.394200, 3.298300, 2.037100, 2.324800, 0.513000, 2.687500 -150, 1.824400, 2.614500, 2.186100, 2.250400, 3.045000, 2.687900, 1.849600, 2.620300, 2.206100, 2.474900, 0.507700, 2.833200 -200, 1.844500, 2.705900, 2.216300, 2.287600, 3.168100, 2.772800, 1.841800, 2.600800, 2.223200, 2.474800, 0.512200, 2.832200 -250, 1.841600, 2.606100, 2.229100, 1844674407274.348633, 3.324700, 3.276000, 1.873200, 2.679400, 2.251700, 2.570800, 0.511100, 2.942100 -300, 2.051600, 2.905100, 2.402200, 2.446900, 3.091700, 2.801400, 2.047200, 2.915000, 2.402400, 2.638400, 0.515300, 3.005900 -350, 2.017100, 2.907600, 2.377400, 2.378600, 3.184600, 2.808000, 2.045100, 2.901600, 2.477000, 2.680600, 0.509800, 3.004400 -400, 2.037400, 2.888000, 1844674407274.455811, 2.497800, 3.522800, 3.045600, 2.060500, 2.964900, 2.433500, 2.730500, 0.516100, 3.064400 -450, 2.054800, 2.910100, 2.439100, 2.542300, 3.301600, 2.946200, 2.080600, 2.923400, 2.448000, 2.744400, 0.512800, 3.106800 -500, 2.058900, 2.890800, 2.407200, 2.602400, 3.325000, 2.926500, 2.108100, 2.919700, 2.476100, 2.759300, 0.513600, 3.096500 +50, 0.014605, 0.022481, 0.021432, 0.020513, 0.029687, 0.024330, 0.015020, 0.022030, 0.018567, 0.021290, 0.005933, 0.025593 +100, 0.016502, 0.023876, 0.020317, 0.021453, 0.031604, 0.026141, 0.016439, 0.023969, 0.020335, 0.023542, 0.005058, 0.026500 +150, 0.018313, 0.026658, 0.022362, 0.022528, 0.031124, 0.026660, 0.018797, 0.025909, 0.021864, 0.024551, 0.005115, 0.028042 +200, 0.018321, 0.026110, 0.022125, 0.023607, 0.031332, 0.030253, 0.018542, 0.026146, 0.022266, 0.026039, 0.005163, 0.028422 +250, 0.019077, 0.026244, 0.022122, 0.023689, 0.032724, 0.028131, 0.018817, 0.026571, 0.022280, 0.025500, 0.005048, 0.028894 +300, 0.020211, 0.028677, 0.023802, 0.024033, 0.031218, 0.028066, 0.020479, 0.029432, 0.023998, 0.026716, 0.005085, 0.030296 +350, 0.020329, 0.028784, 0.024009, 0.024142, 0.031299, 0.031063, 0.020611, 0.029062, 0.024154, 0.027113, 0.005222, 0.030262 +400, 0.020347, 0.028940, 0.023895, 0.024348, 0.031672, 0.028548, 0.020648, 0.029372, 0.024242, 0.027516, 0.005258, 0.030596 +450, 0.020343, 0.028876, 0.024376, 0.025891, 0.033180, 0.029516, 0.020912, 0.029095, 0.024485, 0.027362, 0.005073, 0.030742 +500, 0.020583, 0.028891, 0.024040, 0.025525, 0.035169, 0.029303, 0.021096, 0.029137, 0.025261, 0.027495, 0.005100, 0.031672