Skip to content

Commit

Permalink
Added examples of smokers' work
Browse files Browse the repository at this point in the history
  • Loading branch information
Bulat-Ziganshin committed Feb 8, 2014
1 parent df52968 commit b828865
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,24 @@ The full list of smells (speeds measured on the single core of i7-4770):
- WordSmoker: computes entropy of 16-bit words (0.7-1.5 GB/s).
- DWordSmoker: computes entropy of 32-bit dwords (3 GB/s).
- Order1Smoker: computes order-1 entropy of 8-bit bytes (0.7-1.5 GB/s).


And examples of their work:

Text file (enwik9):
- ByteSmoker entropy: minimum 62.68%, average 64.20%, maximum 66.97%
- WordSmoker entropy: minimum 53.14%, average 55.97%, maximum 57.93%
- Order1Smoker entropy: minimum 42.43%, average 47.75%, maximum 48.88%
- DWordSmoker entropy: minimum 4.14%, average 10.37%, maximum 16.01%

Binary file:
- ByteSmoker entropy: minimum 48.49%, average 77.67%, maximum 93.62%
- WordSmoker entropy: minimum 33.09%, average 68.74%, maximum 92.00%
- Order1Smoker entropy: minimum 17.69%, average 59.81%, maximum 90.39%
- DWordSmoker entropy: minimum 1.78%, average 31.92%, maximum 92.00%

Compressed file:
- ByteSmoker entropy: minimum 100.00%, average 100.00%, maximum 100.00%
- WordSmoker entropy: minimum 99.75%, average 99.93%, maximum 99.93%
- Order1Smoker entropy: minimum 99.49%, average 99.86%, maximum 99.86%
- DWordSmoker entropy: minimum 96.20%, average 96.95%, maximum 98.04%
2 changes: 1 addition & 1 deletion smoke.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ int main (int argc, char **argv)
{
if (argc==1)
{
fprintf(stderr, version);
fprintf(stderr, "%s", version);
fprintf(stderr, "\n\nUsage: smoke infiles...\n\n%s", copyright);
return EXIT_FAILURE;
}
Expand Down

0 comments on commit b828865

Please sign in to comment.