[squeak-dev] Re: Small text composition bench

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Sat Oct 12 11:34:31 UTC 2013


Skipped content of type multipart/alternative-------------- next part --------------
Reporting - 920 tallies, 115 msec.

**Tree**
--------------------------------
Process: running 40 (2147) Morphic UI - a PasteUpMorph(1622) [world]: nil
--------------------------------
97.4% (112 ms) TextComposer>>composeAllLines
  |97.4% (112 ms) TextComposer>>composeOneLine
  |  90.8% (104 ms) TextComposer>>composeAllRectangles:
  |    |90.8% (104 ms) TextComposer>>composeEachRectangleIn:
  |    |  87.7% (101 ms) CompositionScanner>>composeFrom:inRectan...leftSide:rightSide:
  |    |    |50.3% (58 ms) CompositionScanner>>setStopConditions
  |    |    |  |50.3% (58 ms) CompositionScanner>>setFont
  |    |    |  |  34.9% (40 ms) CompositionScanner(CharacterScanner)>>setFont
  |    |    |  |    |13.5% (16 ms) Text>>fontAt:
  |    |    |  |    |  |13.5% (16 ms) Text>>fontIfApplying:
  |    |    |  |    |  |  2.9% (3 ms) Text>>withFormattingAttributeValues:do:
  |    |    |  |    |  |    |2.6% (3 ms) Array(SequenceableCollection)>>do:
  |    |    |  |    |  |  1.4% (2 ms) AbstractFont class>>familyName:pointSize:
  |    |    |  |    |  |    1.4% (2 ms) Dictionary>>at:ifAbsent:
  |    |    |  |    |9.0% (10 ms) StrikeFont>>baseKern
  |    |    |  |    |  |6.5% (8 ms) String>>=
  |    |    |  |    |  |  |1.1% (1 ms) String>>replaceFrom:to:with:startingAt:
  |    |    |  |    |  |2.4% (3 ms) StrikeFont>>isSynthetic
  |    |    |  |    |  |  1.3% (2 ms) String>>compare:with:collated:
  |    |    |  |    |1.3% (2 ms) Text>>withFormattingAttributeValues:do:
  |    |    |  |    |  1.3% (2 ms) Array(SequenceableCollection)>>do:
  |    |    |  |  15.3% (18 ms) Character class>>space
  |    |    |  |    5.9% (7 ms) Array>>replaceFrom:to:with:startingAt:
  |    |    |  |    1.6% (2 ms) Behavior>>basicNew:
  |    |    |24.4% (28 ms) CompositionScanner>>space
  |    |    |  |8.6% (10 ms) CharacterScanner>>scanCharactersFrom:to...stopConditions:kern:
  |    |    |4.8% (5 ms) TextLine class>>start:stop:internalSpaces:paddingWidth:
  |    |    |  |4.7% (5 ms) TextLine class(Behavior)>>new
  |    |    |  |  4.7% (5 ms) TextLine>>initialize
  |    |    |4.0% (5 ms) CompositionScanner>>endOfRun
  |    |    |  |4.0% (5 ms) CompositionScanner>>setStopConditions
  |    |    |  |  4.0% (5 ms) CompositionScanner>>setFont
  |    |    |  |    3.1% (4 ms) CompositionScanner(CharacterScanner)>>setFont
  |    |    |  |      2.0% (2 ms) Text>>fontAt:
  |    |    |  |        2.0% (2 ms) Text>>fontIfApplying:
  |    |    |  |          1.2% (1 ms) Text>>withFormattingAttributeValues:do:
  |    |    |  |            1.2% (1 ms) Array(SequenceableCollection)>>do:
  |    |    |1.3% (1 ms) Rectangle>>top
  |    |    |1.2% (1 ms) CompositionScanner>>doNewLine
  |    |    |1.2% (1 ms) Rectangle>>left
  |    |  2.5% (3 ms) TextLine>>lineHeight
  |  5.3% (6 ms) TextComposer>>rectanglesAt:
  |    |4.5% (5 ms) Point>>corner:
  |  1.3% (2 ms) Array(Collection)>>notEmpty
1.0% (1 ms) OrderedCollection(SequenceableCollection)>>asArray
  1.0% (1 ms) Array class(ArrayedCollection class)>>withAll:
    1.0% (1 ms) Array(SequenceableCollection)>>replaceFrom:to:with:
      1.0% (1 ms) Array>>replaceFrom:to:with:startingAt:


**Leaves**
9.6% (11 ms) CharacterScanner>>scanCharactersFrom:to...stopConditions:kern:
6.4% (7 ms) Array>>replaceFrom:to:with:startingAt:
5.2% (6 ms) Array(SequenceableCollection)>>do:
2.7% (3 ms) Behavior>>basicNew:
1.5% (2 ms) Object>>at:put:
1.5% (2 ms) Behavior>>basicNew
1.4% (2 ms) Dictionary>>at:ifAbsent:
1.4% (2 ms) String>>compare:with:collated:
1.3% (1 ms) Rectangle>>top
1.1% (1 ms) String>>replaceFrom:to:with:startingAt:

**Memory**
	old			+0 bytes
	young		+1,518,804 bytes
	used		+1,518,804 bytes
	free		-1,518,804 bytes

**GCs**
	full			0 totalling 0ms (0.0% uptime)
	incr		11 totalling 14ms (12.0% uptime), avg 1.0ms
	tenures		0
	root table	0 overflows

**Processes**
	Total process switches: 1845
	Without Profiler: 5
	Stack page overflows: 11027
	Stack page divorces: 18
-------------- next part --------------
A non-text attachment was scrubbed...
Name: text_cuis.st
Type: application/octet-stream
Size: 5619 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20131012/6b76c2bf/text_cuis.obj


More information about the Squeak-dev mailing list