Codebase list ohcount / 4fa67836-5fea-4473-87e4-bd80a2d5b1ae/main test / src_dir / smalltalk1.st
4fa67836-5fea-4473-87e4-bd80a2d5b1ae/main

Tree @4fa67836-5fea-4473-87e4-bd80a2d5b1ae/main (Download .tar.gz)

smalltalk1.st @4fa67836-5fea-4473-87e4-bd80a2d5b1ae/mainraw · history · blame

"======================================================================
|
|   Benchmark for streams
|
|
 ======================================================================"


Eval [
    n := Smalltalk arguments isEmpty
	ifTrue: [ 10000 ]
	ifFalse: [ 1 max: Smalltalk arguments first asInteger ].

    hello := String new writeStream.
    n timesRepeat: [ hello nextPutAll: 'hello
\' ].  "this is a comment
so this line is a comment too\"
    hello position displayNl
"but the previous one, and this one too, are not!" ]