aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources
Commit message (Collapse)AuthorAgeFilesLines
* #49 Fixing rounding behavior of baseline implementationGunnar Morling2024-01-142-1/+5
|
* Add rounding error test caseMarko Topolnik2024-01-142-0/+20125
|
* Add small test casesAlexander Yastrebov2024-01-106-0/+10
| | | | For https://github.com/gunnarmorling/1brc/issues/276
* One more sample in test fileMarko Topolnik2024-01-062-1/+2
|
* Limit names to 100 bytesMarko Topolnik2024-01-062-33/+46
|
* Add test sample with a worst-case UTF-8 nameMarko Topolnik2024-01-062-0/+33
|
* test: use temperature value of 1.0Alexander Yastrebov2024-01-042-10001/+10001
| | | | | | | | | | | In case of key collision broken implementation will likely attribute measurements to the wrong key and therefore it is better to have non-zero value to end up with a wrong average value. When all measurements are zero then averages are also zero even when attributed to the wrong keys. Updates #91
* test: add sample with 10k unique keysAlexander Yastrebov2024-01-042-0/+10001
| | | | | | | | | | | | | Input created via ```sh bash -c 'for i in {1..10000} ; do echo "id$i;0.0" ; done' >./src/test/resources/samples/measurements-10000-unique-keys.txt ``` and output via baseline implementation. Keys are short and very similar which improves chances for collision and hence are good for testing. Fixes #91
* Fixing wrong expected valueGunnar Morling2024-01-041-1/+1
|
* Expanding tests and eval infraGunnar Morling2024-01-046-0/+31
|
* test: add test samplesAlexander Yastrebov2024-01-046-0/+16
| | | | | | | | | | | | | | | | | | Adds test samples that can be used for unit tests or to verify implementations via: ```bash for sample in $(ls src/test/resources/samples/*.txt) do echo "Validating $sample" rm -f measurements.txt ln -s $sample measurements.txt diff <(./calculate_average.sh) ${sample%.txt}.out done rm measurements.txt ``` For #61
* 🏆 Initial importGunnar Morling2023-12-281-0/+0