Fixing things up

This commit is contained in:
Daniel Lemire 2018-12-24 15:20:00 -05:00
parent 893e336574
commit 0c97db52c5
2 changed files with 18 additions and 11 deletions

View File

@ -179,17 +179,24 @@ int main(int argc, char *argv[]) {
unified.start();
bool isok = find_structural_bits(p.data(), p.size(), pj);
unified.end(results);
cy1 += results[0];
cl1 += results[1];
unified.start();
isok = isok && flatten_indexes(p.size(), pj);
unified.end(results);
cy2 += results[0];
cl2 += results[1];
unified.start();
isok = isok && unified_machine(p.data(), p.size(), pj);
unified.end(results);
cy3 += results[0];
cl3 += results[1];
if(!isok) {
std::cerr << "failure?" << std::endl;
}

View File

@ -4,25 +4,25 @@ chosenpredictors= ['integer_count', 'float_count', 'string_count', 'backslash_co
target = stage1_cycle_count
0.98 cycles per nonasciibyte_count
0.46 cycles per byte_count
R2 = 0.9987789976254756
R2 = 0.9987704927515433
target = stage2_cycle_count
2 cycles per structural_indexes_count
0.11 cycles per byte_count
R2 = 0.9944144115615688
R2 = 0.9940031972098434
target = stage3_cycle_count
2.5 cycles per float_count
2.2 cycles per string_count
2.6 cycles per float_count
2.4 cycles per string_count
1.4 cycles per structural_indexes_count
0.095 cycles per byte_count
R2 = 0.9983269621964512
0.094 cycles per byte_count
R2 = 0.9981627163839895
target = total_cycles
6.6 cycles per string_count
6 cycles per float_count
7 cycles per string_count
6.2 cycles per float_count
2.6 cycles per structural_indexes_count
0.82 cycles per nonasciibyte_count
0.64 cycles per byte_count
R2 = 0.9994265124423222
0.77 cycles per nonasciibyte_count
0.63 cycles per byte_count
R2 = 0.999372564385096