This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.Hashable | |
import Control.Monad.ST | |
import qualified Data.HashTable.ST.Cuckoo as HT | |
data HashCollider = HashCollider String Int | |
deriving (Eq, Show) | |
instance Hashable HashCollider where | |
hashWithSalt salt (HashCollider name value) = salt + value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: benchmark | |
benchmark: test-c test-clang test-g++ test-clang++ test.js test.lua | |
@echo "Benchmark updated at `date`" > benchmark | |
@echo >> benchmark | |
@echo '--- time ./test-c' >> benchmark | |
@time ./test-c >> benchmark 2>&1 | |
@echo >> benchmark | |
@echo '--- time ./test-clang' >> benchmark | |
@time ./test-clang >> benchmark 2>&1 |