forked from OSchip/llvm-project
[libc][benchmark] add memmove to size distribution, also update other distributions
Differential Revision: https://reviews.llvm.org/D113260
This commit is contained in:
parent
c74f2e5b27
commit
13744e3d73
|
@ -6,6 +6,33 @@
|
|||
namespace llvm {
|
||||
namespace libc_benchmarks {
|
||||
|
||||
static constexpr double MemmoveGoogleA[] = {
|
||||
#include "distributions/MemmoveGoogleA.csv"
|
||||
};
|
||||
static constexpr double MemmoveGoogleB[] = {
|
||||
#include "distributions/MemmoveGoogleB.csv"
|
||||
};
|
||||
static constexpr double MemmoveGoogleD[] = {
|
||||
#include "distributions/MemmoveGoogleD.csv"
|
||||
};
|
||||
static constexpr double MemmoveGoogleQ[] = {
|
||||
#include "distributions/MemmoveGoogleQ.csv"
|
||||
};
|
||||
static constexpr double MemmoveGoogleL[] = {
|
||||
#include "distributions/MemmoveGoogleL.csv"
|
||||
};
|
||||
static constexpr double MemmoveGoogleM[] = {
|
||||
#include "distributions/MemmoveGoogleM.csv"
|
||||
};
|
||||
static constexpr double MemmoveGoogleS[] = {
|
||||
#include "distributions/MemmoveGoogleS.csv"
|
||||
};
|
||||
static constexpr double MemmoveGoogleW[] = {
|
||||
#include "distributions/MemmoveGoogleW.csv"
|
||||
};
|
||||
static constexpr double MemmoveGoogleU[] = {
|
||||
#include "distributions/MemmoveGoogleU.csv"
|
||||
};
|
||||
static constexpr double MemcmpGoogleA[] = {
|
||||
#include "distributions/MemcmpGoogleA.csv"
|
||||
};
|
||||
|
@ -36,12 +63,12 @@ static constexpr double MemcmpGoogleU[] = {
|
|||
static constexpr double MemcpyGoogleA[] = {
|
||||
#include "distributions/MemcpyGoogleA.csv"
|
||||
};
|
||||
static constexpr double MemcpyGoogleD[] = {
|
||||
#include "distributions/MemcpyGoogleD.csv"
|
||||
};
|
||||
static constexpr double MemcpyGoogleB[] = {
|
||||
#include "distributions/MemcpyGoogleB.csv"
|
||||
};
|
||||
static constexpr double MemcpyGoogleD[] = {
|
||||
#include "distributions/MemcpyGoogleD.csv"
|
||||
};
|
||||
static constexpr double MemcpyGoogleQ[] = {
|
||||
#include "distributions/MemcpyGoogleQ.csv"
|
||||
};
|
||||
|
@ -91,6 +118,22 @@ static constexpr double Uniform384To4096[] = {
|
|||
#include "distributions/Uniform384To4096.csv"
|
||||
};
|
||||
|
||||
ArrayRef<MemorySizeDistribution> getMemmoveSizeDistributions() {
|
||||
static constexpr MemorySizeDistribution kDistributions[] = {
|
||||
{"memmove Google A", MemmoveGoogleA},
|
||||
{"memmove Google B", MemmoveGoogleB},
|
||||
{"memmove Google D", MemmoveGoogleD},
|
||||
{"memmove Google L", MemmoveGoogleL},
|
||||
{"memmove Google M", MemmoveGoogleM},
|
||||
{"memmove Google Q", MemmoveGoogleQ},
|
||||
{"memmove Google S", MemmoveGoogleS},
|
||||
{"memmove Google U", MemmoveGoogleU},
|
||||
{"memmove Google W", MemmoveGoogleW},
|
||||
{"uniform 384 to 4096", Uniform384To4096},
|
||||
};
|
||||
return kDistributions;
|
||||
}
|
||||
|
||||
ArrayRef<MemorySizeDistribution> getMemcpySizeDistributions() {
|
||||
static constexpr MemorySizeDistribution kDistributions[] = {
|
||||
{"memcpy Google A", MemcpyGoogleA},
|
||||
|
|
|
@ -29,6 +29,9 @@ struct MemorySizeDistribution {
|
|||
ArrayRef<double> Probabilities; // Size indexed array of probabilities.
|
||||
};
|
||||
|
||||
/// Returns a list of memmove size distributions.
|
||||
ArrayRef<MemorySizeDistribution> getMemmoveSizeDistributions();
|
||||
|
||||
/// Returns a list of memcpy size distributions.
|
||||
ArrayRef<MemorySizeDistribution> getMemcpySizeDistributions();
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
0,0,0.000273648,0.034206,0.0057466,0.0830065,0.279942,0.0057466,0.0318344,0.00775335,0.00656755,0.0212533,0.136277,0.0327465,0.0135,0.101067,0.0322904,0.0323816,0.0118581,0.00647633,0.00884794,0.00547295,0.00200675,0.00282769,0.0268175,0.0034662,0.0232601,0.00355742,0.00109459,0.00328377,0.00218918,0.0390404,0.000273648,0.000182432,0.000638511,0.00383107,0.0231688,0,0.00127702,0,0,0,9.12159e-05,0,0,0,0,0,0,0,0,9.12159e-05,0.000273648,9.12159e-05,9.12159e-05,0.000547295,0,0.000182432,0,0,0.000182432,9.12159e-05,0,0,9.12159e-05,0,0.00136824,0.000912159,0.000729727,0.000182432,0,0.000820943,0,0,0,0,9.12159e-05
|
||||
0,0,9.28419e-05,0.0142048,0.00389936,0.0254387,0.539319,0.00208894,0.019079,0.0189397,0.00301736,0.0136942,0.0548696,0.0246495,0.0117909,0.0498097,0.0521307,0.0252994,0.00979482,0.00668462,0.00821651,0.00468852,0.00264599,0.00543125,0.0230248,0.00181042,0.0188933,0.0028781,0.00153189,0.00143905,0.00129979,0.0326339,0,0.000139263,0.000232105,0.000278526,0.012348,0,0.00051063,9.28419e-05,0,0.000371368,0.000185684,0.000417789,0.000324947,0.000464209,0.000185684,0.000232105,0.000139263,0.000139263,0,9.28419e-05,0.000371368,9.28419e-05,0,0.000557051,0.000232105,9.28419e-05,4.64209e-05,0.000139263,0.000139263,0.000185684,0,0,0.000278526,0.000139263,0.000649893,0.000649893,0.000371368,0.000185684,0,0.000139263,0,0,0,4.64209e-05,4.64209e-05,0,0,4.64209e-05,0,0,0,0,0,0,0,0,0,4.64209e-05,0,0,0,4.64209e-05,0,0,0,0,0,0,0,0,0,0,0,0,4.64209e-05
|
||||
|
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
0,0.00814852,0.0587402,0.00311769,0.0264295,0.00063771,0.00106285,0.0141005,0.150854,0.00751081,0.00205484,0.00247998,0.0260044,0.113512,0.000495997,0.00085028,0.0110536,0.0047474,0.00205484,0.00042514,0.000283427,0.000354283,0.00226741,0.00113371,0.00368455,0.000495997,7.08567e-05,0.000495997,0.000141713,0.000283427,0.505704,0,0.000141713,0.0352158,0,7.08567e-05,0,0.000283427,0.000141713,7.08567e-05,0.00021257,7.08567e-05,0.00991993,0.000141713,0.000141713,0.0021257,0,0.000566853,0,0.00042514,7.08567e-05,0,0.000354283,0,0,7.08567e-05,0,0,0,0,0,0,0,0,0,0,0,0,0,7.08567e-05,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7.08567e-05,0.00042514,0,0,0,0.000141713,0,0,0,0,0,0,0,0,0,0,7.08567e-05
|
||||
0,0.00645824,0.0488038,0.0033759,0.0207691,0.00080728,0.000366946,0.0165125,0.170556,0.00344929,0.00198151,0.00477029,0.022824,0.129972,0.000293556,0.000220167,0.0121826,0.00359607,0.000733891,0.000146778,0.000220167,7.33891e-05,0.000733891,0.00154117,0.00455012,0.000880669,0.000293556,0.000587113,0.000220167,0.000220167,0.470204,0,0,0.0518127,0.000220167,0,0,0.000366946,7.33891e-05,7.33891e-05,0.000513724,0,0.0125495,0,7.33891e-05,0.00293556,0,0.000440335,0.000146778,0.000660502,0.000146778,7.33891e-05,0.000660502,0,7.33891e-05,0.000146778,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7.33891e-05,0.00102745,0,0,7.33891e-05,7.33891e-05,0,0,0.000366946,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7.33891e-05
|
||||
|
|
|
|
@ -1 +1 @@
|
|||
0,0.0146074,0.0219111,0.00405762,0.0495029,0.00466626,0.00365186,0.00649219,0.00365186,0.00689795,0.0042605,0.00344898,0.0225198,0.00649219,0.0129844,0.0419963,0.0265774,0.451816,0.000811524,0.0202881,0.000811524,0.000405762,0.00142017,0.158247,0.000608643,0.110164,0,0.000608643,0.000405762,0.000202881,0.000608643,0,0.00892676,0.000202881,0,0,0.000202881,0,0,0,0.00405762,0,0.000202881,0,0,0.000202881,0.000202881,0,0,0,0.000202881,0,0,0,0,0,0,0,0.000811524,0,0,0,0,0,0,0,0.000202881,0,0,0,0.000202881,0,0,0,0,0,0.000202881,0,0,0,0,0,0,0,0,0,0,0,0,0.000202881,0,0,0,0,0,0,0,0,0,0,0.000202881,0.000202881,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.000202881,0,0,0,0,0,0,0,0,0,0.00324609,0,0,0,0,0,0,0,0,0.000202881
|
||||
0,0.0111821,0.00734824,0.00159744,0.0814696,0.00127796,0.0028754,0.0028754,0.00479233,0.00191693,0.000638978,0.000638978,0.0440895,0.00351438,0.0118211,0.0115016,0.0214058,0.422045,0.00191693,0.0217252,0.00127796,0.000319489,0,0.175719,0.00383387,0.157508,0.000319489,0.000319489,0,0,0,0.000638978,0.0028754,0,0,0.000319489,0,0,0,0,0.000319489,0,0,0,0,0,0,0.000319489,0,0,0.000958466,0,0,0,0,0,0,0,0.000638978
|
||||
|
|
|
|
@ -1 +1 @@
|
|||
0,0.0367881,0.0610792,0.0643791,0.0621792,0.0615681,0.0976228,0.0580848,0.0580848,0.0644097,0.175752,0.0728123,0.0358714,0.014758,0.0122831,0.028691,0.015033,0.00540821,0.00678318,0.00488878,0.00681374,0.00302493,0.0096859,0.0108775,0.00305549,0.00556099,0.00137497,0.000672207,0.00195551,0.000427768,0.00164996,0.00953312,0.000641652,0.00140552,0.000458323,0.00012222,3.05549e-05,0.000244439,0.00012222,3.05549e-05,0,0.000152774,0,0.000213884,0.00235273,0.00131386,0.000213884,0,0,0,0,0,0,0,9.16646e-05,0,9.16646e-05,3.05549e-05,0,9.16646e-05,0,0,3.05549e-05,0,3.05549e-05,0,3.05549e-05,3.05549e-05,0,0,0,0,0,0.000152774,0.000886091,6.11098e-05,3.05549e-05,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3.05549e-05
|
||||
0,0.0344781,0.0636858,0.066712,0.0615777,0.0646039,0.0974498,0.0607616,0.0588575,0.0649439,0.16933,0.0616117,0.0353621,0.0150289,0.0126488,0.0271336,0.017477,0.00581435,0.0066304,0.00571234,0.00867052,0.00462428,0.00935056,0.0109487,0.00391023,0.00550833,0.0017341,0.00105406,0.00227814,0.000748045,0.000816049,0.0134308,0.000544033,0.0015981,0.000238014,0.00017001,0.000102006,0.00034002,0.000136008,3.4002e-05,6.80041e-05,6.80041e-05,0,0.000204012,0.00139408,0.00102006,0.00017001,3.4002e-05,0,0,0,0,3.4002e-05,0,0,0,0.000102006,3.4002e-05,0,3.4002e-05,0,0,3.4002e-05,0,0,0,0,3.4002e-05,0,0,0,0,0,0.000136008,0.000544033,0,3.4002e-05
|
||||
|
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
0,0.0207254,0.0777202,0.0777202,0.0984456,0.124352,0.0932642,0.0362694,0.0569948,0.0207254,0.0310881,0.0207254,0.0362694,0.0103627,0.0259067,0.0103627,0.0259067,0.015544,0.0207254,0.0103627,0.0103627,0.0103627,0.0103627,0.00518135,0.015544,0,0.00518135,0.00518135,0,0.015544,0,0.0103627,0.015544,0.00518135,0.0103627,0,0.00518135,0.00518135,0.00518135,0,0.0103627,0,0,0.00518135,0,0,0,0,0,0.00518135,0,0,0,0,0,0.00518135,0,0,0,0,0.00518135,0,0,0,0,0,0,0,0,0,0,0,0,0.00518135,0,0.00518135,0.00518135,0,0.00518135
|
||||
0,0.0157895,0.0789474,0.0578947,0.115789,0.0947368,0.0894737,0.0315789,0.0684211,0.0368421,0.0263158,0.0157895,0.0421053,0.0315789,0.0263158,0.0105263,0.0105263,0.0105263,0,0.00526316,0.0105263,0.0210526,0.0105263,0.0105263,0.0105263,0.0210526,0.00526316,0.00526316,0.0157895,0.00526316,0.00526316,0,0,0.0105263,0.00526316,0.0105263,0,0.0105263,0,0,0.00526316,0.0157895,0,0.00526316,0,0.0210526,0.00526316,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.0105263,0,0.00526316,0,0,0,0.00526316
|
||||
|
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
0.000827498,0.19478,0.0357097,0.0561426,0.0597708,0.0514322,0.0653087,0.0361553,0.0524507,0.0406111,0.0280076,0.0120942,0.0160407,0.0100573,0.00961171,0.0266709,0.00954806,0.00451941,0.0108211,0.00706556,0.00961171,0.00483768,0.00299173,0.00350095,0.0117759,0.00050923,0.00623806,0.00649268,0.000891152,0.00318269,6.36537e-05,6.36537e-05,0.0991725,0.000318269,6.36537e-05,0.000190961,0.00152769,0.000445576,0,0.000190961,0.00101846,0.000127307,6.36537e-05,0,6.36537e-05,6.36537e-05,6.36537e-05,0.000445576,0.000381922,6.36537e-05,0,0,0.000127307,0,6.36537e-05,0,6.36537e-05,6.36537e-05,0,0,0.00127307,0.000254615,0.000127307,0.000127307,0.0175048,6.36537e-05,6.36537e-05,0.000127307,0.000127307,0,6.36537e-05,0,0.000954806,0,0,0,6.36537e-05,6.36537e-05,0.000190961,0.000190961,0.000763845,0,6.36537e-05,0,0.000700191,0.000127307,0,6.36537e-05,0.000127307,0,0,6.36537e-05,0,0,0,0,0.011394,6.36537e-05,6.36537e-05,6.36537e-05,0.000318269,6.36537e-05,0,0,0,6.36537e-05,6.36537e-05,0,0.000763845,0,0,0.000127307,6.36537e-05,0,0,6.36537e-05,0.000127307,0,0,6.36537e-05,0.000190961,0,0,0,0,0,0,0,0.0216423,0,0,6.36537e-05,0,0,0,0,0.000127307,0,0,0,0.000254615,0,0,0,6.36537e-05,0,6.36537e-05,0,0,6.36537e-05,0,0,0,0,0,0,0,0,0,0,0.00999363,0,0,0,0,0,0,0,0,6.36537e-05,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6.36537e-05,6.36537e-05,0,0,0.00827498,0,0,0,0,0,0,0,0.000318269,0,0,0,0,0,6.36537e-05,0,0,0,6.36537e-05,0,0,0,0,0,0,0,0,6.36537e-05,6.36537e-05,0,6.36537e-05,0,0.00916614,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6.36537e-05,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.0121579,0,0,0,6.36537e-05,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.000127307,0,0,0,0,0,0,0,0.00458307,0,0,0,0,0,0,0,0,0,0,0,6.36537e-05,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00324634,0,0,0,0,0,0,0.000127307,0,0,0,0,0,0,0,0,0,0,0,0,0.000127307,0,0,0,0,0,0,0,0,0,0,0,0.00229153,0,0,0,0,0,0,0,0.000127307,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.000127307,0,0,0,0.00133673,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.000254615,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00050923,0,0,0,6.36537e-05,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00108211,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00050923,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6.36537e-05,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00311903,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.000445576,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6.36537e-05
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
0,0.315789,0.0263158,0,0,0.0263158,0,0,0.0263158,0,0.0263158,0,0,0,0,0,0,0,0.0263158,0,0,0.0263158,0,0,0,0,0,0,0,0,0,0,0.263158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.0263158,0,0,0.0263158,0,0,0,0,0,0,0,0,0,0,0,0,0,0.0526316,0,0,0,0,0,0,0.0263158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.105263,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.0263158
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue