-USING: io.crc32 io.encodings.ascii io.files kernel math ;
+USING: checksums checksums.crc32 kernel math ;
IN: benchmark.crc32
-: crc32-primes-list ( -- )
- 10 [
- "extra/math/primes/list/list.factor" resource-path
- ascii file-contents crc32 drop
+: crc32-benchmark ( -- )
+ 1,000 [
+ "vocab:mime/multipart/multipart-tests.factor"
+ crc32 checksum-file drop
] times ;
-MAIN: crc32-primes-list
+MAIN: crc32-benchmark