Last active
January 7, 2020 03:14
-
-
Save nicolasff/fe5668194769c175d9d4dfc78f694724 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$ cat test.hs | |
main = do | |
putStrLn "hello world" | |
$ ghc test.hs -o test | |
[1 of 1] Compiling Main ( test.hs, test.o ) [Optimisation flags changed] | |
Linking test ... | |
$ time ./test | |
hello world | |
real 0m0.002s | |
user 0m0.000s | |
sys 0m0.002s | |
$ wc -c test | |
992592 test | |
$ strace -c ./test | |
hello world | |
% time seconds usecs/call calls errors syscall | |
------ ----------- ----------- --------- --------- ---------------- | |
42.53 0.001324 31 42 mmap | |
11.73 0.000365 30 12 mprotect | |
8.16 0.000254 28 9 openat | |
8.03 0.000250 31 8 read | |
5.59 0.000174 19 9 close | |
4.59 0.000143 15 9 fstat | |
2.79 0.000087 17 5 clock_gettime | |
2.76 0.000086 6 14 rt_sigaction | |
2.31 0.000072 10 7 rt_sigprocmask | |
2.25 0.000070 11 6 madvise | |
1.99 0.000062 62 1 arch_prctl | |
1.45 0.000045 45 1 write | |
1.03 0.000032 32 1 munmap | |
0.87 0.000027 27 1 sysinfo | |
0.84 0.000026 26 1 timer_create | |
0.80 0.000025 25 1 poll | |
0.80 0.000025 25 1 ioctl | |
0.45 0.000014 4 3 brk | |
0.39 0.000012 6 2 timer_settime | |
0.22 0.000007 7 1 timer_delete | |
0.16 0.000005 5 1 prlimit64 | |
0.13 0.000004 4 1 set_tid_address | |
0.13 0.000004 4 1 set_robust_list | |
0.00 0.000000 0 1 1 access | |
0.00 0.000000 0 1 execve | |
------ ----------- ----------- --------- --------- ---------------- | |
100.00 0.003113 139 1 total | |
(26 unique syscalls, 139 total) | |
$ strip ./test | |
$ wc -c ./test | |
799840 ./test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment