Linux ghci vs Windows ghci

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Linux ghci vs Windows ghci

Donghee Nah

I'm using Windows 7 32bit Host OS(ghc 6.8.3) and Virtualbox Archlinux Guest OS(ghc 6.8.4)

I feel that ghci code executing speed in guest os is 1.5~2x faster than host os

The code:
let t n = do {if n `mod` 100000 == 0 then print n else return ()} >> t (n+1)
t 1

any clue?


_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Linux ghci vs Windows ghci

Ketil Malde-5
Donghee Nah <[hidden email]> writes:

> I feel that ghci code executing speed in guest os is 1.5~2x faster than host
> os
>
> The code:
> let t n = do {if n `mod` 100000 == 0 then print n else return ()} >> t (n+1)
> t 1
>
> any clue?

Speed of the terminal?  Cost of syscalls (user/kernel transitions)?

-k
--
If I haven't seen further, it is by standing in the footprints of giants
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Linux ghci vs Windows ghci

Joachim Breitner-2
Hi,

Am Sonntag, den 21.02.2010, 13:58 +0100 schrieb Ketil Malde:

> Donghee Nah <[hidden email]> writes:
> > I feel that ghci code executing speed in guest os is 1.5~2x faster than host
> > os
> >
> > The code:
> > let t n = do {if n `mod` 100000 == 0 then print n else return ()} >> t (n+1)
> > t 1
> >
> > any clue?
>
> Speed of the terminal?  Cost of syscalls (user/kernel transitions)?
also note that I observed similar things with Win32 code vs. Linux code
when compiling stuff unoptimized. See

http://www.joachim-breitner.de/blog/archives/358-Building-arbtt-for-Windows.html

the first three paragraphs.

But I don’t know why that is.

Greetings,
Joachim

--
Joachim "nomeata" Breitner
  mail: [hidden email] | ICQ# 74513189 | GPG-Key: 4743206C
  JID: [hidden email] | http://www.joachim-breitner.de/
  Debian Developer: [hidden email]

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe

signature.asc (205 bytes) Download Attachment