September 2017
Intermediate to advanced
466 pages
9h 33m
English
In this subsection, we will compare the performance of our version of wc(1) with the wc(1) version that comes with macOS Sierra 10.12.6. First, we will execute wc.go:
$ file wc
wc: Mach-O 64-bit executable x86_64
$ time ./wc *.data
672320 3361604 9413057 connections.data
269123 807369 4157790 diskSpace.data
672040 1344080 8376070 memory.data
1344533 2689066 5378132 pageFaults.data
269465 792715 4068250 uptime.data
3227481 8994834 31393299 total
real 0m17.467s
user 0m22.164s
sys 0m3.885s
Then, we will execute the macOS version of wc(1) to process the same files:
$ file `which wc` /usr/bin/wc: Mach-O 64-bit executable x86_64 $ time wc *.data 672320 3361604 9413057 connections.data 269123 807369 4157790 ...
Read now
Unlock full access