Re: Speeding up trivial programs

Divya Ranjan via Haskell-Cafe <[email protected]>
Newsgroups gmane.comp.lang.haskell.cafe
Message-ID <[email protected]>
I don't see any significant difference:

~ via C v14.2.1-gcc via λ 9.10.1
❯ cat hello.hs
module Main where

main = putStrLn "Hello!"

~ via C v14.2.1-gcc via λ 9.10.1
❯ ./hello
Hello!

~ via C v14.2.1-gcc via λ 9.10.1
❯ time ./hello
Hello!
./hello  0.00s user 0.00s system 85% cpu 0.003 total

~ via C v14.2.1-gcc via λ 9.10.1
❯ cat hello.c
#include <stdio.h>

int main () {
   printf("Hello");

   return 0;
}

~ via C v14.2.1-gcc via λ 9.10.1
❯ ./hello
Hello!

~ via C v14.2.1-gcc via λ 9.10.1
❯ time ./hello
Hello!
./hello  0.00s user 0.00s system 72% cpu 0.004 total
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.