1brc
1brc copied to clipboard
Inconsistent output
I was looking to test the performance impact of several parts of the program and was setting up some tests to ensure I didn't break anything while testing. However, I had some issues setting up my test for validation purposes, the output kept failing the comparison with the validation output.
I then checked the SHA-256 hash of the output and again after running it once more and the hashes differed. Here are the results calculated with sha256sum
:
8e465b4335342d7cd3cccd490282942781ea6ef907d1d663b3ed90c5d3ef9316
5f1875dd47dde54175a47ab13d0808aaf815bf8f8abf223f9592ecca5106ff91
1f5af1080a1a069067bf6852fec37a882d8350edd35571c8d95fe0f44a25d46a
8e465b4335342d7cd3cccd490282942781ea6ef907d1d663b3ed90c5d3ef9316
5f1875dd47dde54175a47ab13d0808aaf815bf8f8abf223f9592ecca5106ff91
8e465b4335342d7cd3cccd490282942781ea6ef907d1d663b3ed90c5d3ef9316
5f1875dd47dde54175a47ab13d0808aaf815bf8f8abf223f9592ecca5106ff91
731b4788d6ade2cbab40f925679a8745f228c0cdb1b0be8f7399d60fe58aeb19
8e465b4335342d7cd3cccd490282942781ea6ef907d1d663b3ed90c5d3ef9316
5f1875dd47dde54175a47ab13d0808aaf815bf8f8abf223f9592ecca5106ff91
Is this intended? I can't think of a reason, since the results should be the same and the order of the parallel execution shouldn't matter due to the alphabetical ordering of the stations but I'm probably missing something :smile:.