miller/cmd/experiments/line_parser
2022-01-23 23:22:55 -05:00
..
read_string.go replace - with _ in *.go filenames 2022-01-23 23:22:55 -05:00
README.txt replace - with _ in *.go filenames 2022-01-23 23:22:55 -05:00
scanner.go replace - with _ in *.go filenames 2022-01-23 23:22:55 -05:00
splitter.go replace - with _ in *.go filenames 2022-01-23 23:22:55 -05:00

$ ls -l ~/tmp/huge
-rw-r--r--  1 kerl  staff  614295000 Aug 25  2020 /Users/kerl/tmp/huge

$ wc -l ~/tmp/huge
 10000000 /Users/kerl/tmp/huge

$ justtime read-string ~/tmp/huge  > /dev/null
TIME IN SECONDS 8.707 -- read-string /Users/kerl/tmp/huge
$ justtime read-string ~/tmp/huge  > /dev/null
TIME IN SECONDS 8.540 -- read-string /Users/kerl/tmp/huge
$ justtime read-string ~/tmp/huge  > /dev/null
TIME IN SECONDS 8.549 -- read-string /Users/kerl/tmp/huge

$ justtime scanner ~/tmp/huge  > /dev/null
TIME IN SECONDS 8.774 -- scanner /Users/kerl/tmp/huge
$ justtime scanner ~/tmp/huge  > /dev/null
TIME IN SECONDS 8.873 -- scanner /Users/kerl/tmp/huge
$ justtime scanner ~/tmp/huge  > /dev/null
TIME IN SECONDS 8.777 -- scanner /Users/kerl/tmp/huge