読者です 読者をやめる 読者になる 読者になる

type t (* void *)

関数型言語や英語学習の事とか。

SML: @eldeshさんのaobenchの結果

 

というわけでやってみます。

  

VMでうごいている64bit版 Lubuntu 13.10でのベンチマーク結果です。

gcc 4.8.1

real 0m1.291s

user 0m1.284s

sys 0m0.000s

 

nj v110.75

real 0m3.276s

user 0m3.258s

sys 0m0.013s

 

mlton 20100608

real 0m2.392s

user 0m2.380s

sys 0m0.004s

 

smlsharp 1.2.0

real 0m26.967s

user 0m26.824s

sys 0m0.024s

 

僕の環境ではsmlsharpはmltonの10倍遅いくらいですか。

 

[~/download/aobench_sml-master] mlton

MLton 20100608 (built Thu Oct 11 21:55:06 UTC 2012 on allspice)

 

[~/download/aobench_sml-master] sml

Standard ML of New Jersey v110.75 [built: Thu May  9 05:41:01 2013]

[~/download/aobench_sml-master] smlsharp -v

SML# version 1.2.0 (2012-11-14 18:25:26 JST) for x86-linux 

 

[~/download/aobench_sml-master] ./meta-aobench.sh 

gcc is running

 

real 0m1.291s

user 0m1.284s

sys 0m0.000s

Standard ML of New Jersey v110.75 [built: Thu May  9 05:41:01 2013]

[scanning aobench.cm]

[library $SMLNJ-BASIS/basis.cm is stable]

[library $SMLNJ-LIB/Util/smlnj-lib.cm is stable]

[loading (aobench.cm):aobench.sml]

Heap was already up-to-date.

sml is running

init_scene...

rendering...

 

real 0m3.276s

user 0m3.258s

sys 0m0.013s

mlton is running

init_scene...

rendering...

 

real 0m2.392s

user 0m2.380s

sys 0m0.004s

make: `all' に対して行うべき事はありません.

smlsharp is running

init_scene...

rendering...

 

real 0m26.967s

user 0m26.824s

sys 0m0.024s

 

---------------------------------------------------------------------------------------------------------

おまけ。

VM上の32bit Lubuntu13.10環境下

ただしsmlsharpは1.3.0-pre3

 

gcc 

real 0m4.702s

user 0m4.660s

sys 0m0.000s

 

nj

real0m3.347s

user0m3.296s

sys0m0.016s

 

mlton

real0m2.200s

user0m2.168s

sys0m0.028s

 

smlsharp

real0m23.588s

user0m23.556s

sys0m0.028s

 

tokuda@tokuda:~/ダウンロード/aobench_sml-master$ smlsharp -v

SML# version 1.3.0-pre3 (2013-10-15 15:41:50 JST) for x86-linux

tokuda@tokuda:~/ダウンロード/aobench_sml-master$ ./meta-aobench.sh 

gcc is running

 

real 0m4.702s

user 0m4.660s

sys 0m0.000s

Standard ML of New Jersey v110.75 [built: Thu May  9 05:51:37 2013]

[scanning aobench.cm]

[library $SMLNJ-BASIS/basis.cm is stable]

[library $SMLNJ-LIB/Util/smlnj-lib.cm is stable]

[loading (aobench.cm):aobench.sml]

Heap was already up-to-date.

sml is running

init_scene...

rendering...

 

real 0m3.347s

user 0m3.296s

sys 0m0.016s

cc1: warning: -malign-functions is obsolete, use -falign-functions [enabled by default]

cc1: warning: -malign-jumps is obsolete, use -falign-jumps [enabled by default]

cc1: warning: -malign-loops is obsolete, use -falign-loops [enabled by default]

mlton is running

init_scene...

rendering...

 

real 0m2.200s

user 0m2.168s

sys 0m0.028s

make: `all' に対して行うべき事はありません.

smlsharp is running

init_scene...

rendering...

 

real 0m23.588s

user 0m23.556s

sys 0m0.028s