BenchmarkScoreMaker

class systemtools.BenchmarkScoreMaker

Benchmark score maker:

>>> benchmark_score_maker = systemtools.BenchmarkScoreMaker()
>>> benchmark_score_maker
BenchmarkScoreMaker()

Use to instantiate scores for benchmark testing.

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_abctools { graph [label=abctools]; "abjad.tools.abctools.AbjadObject.AbjadObject" [color=1, group=0, label=AbjadObject, shape=box]; "abjad.tools.abctools.AbjadObject.AbstractBase" [color=1, group=0, label=AbstractBase, shape=box]; "abjad.tools.abctools.AbjadObject.AbstractBase" -> "abjad.tools.abctools.AbjadObject.AbjadObject"; } subgraph cluster_systemtools { graph [label=systemtools]; "abjad.tools.systemtools.BenchmarkScoreMaker.BenchmarkScoreMaker" [color=black, fontcolor=white, group=2, label=<<B>BenchmarkScoreMaker</B>>, shape=box, style="filled, rounded"]; } subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=2, group=1, label=object, shape=box]; } "abjad.tools.abctools.AbjadObject.AbjadObject" -> "abjad.tools.systemtools.BenchmarkScoreMaker.BenchmarkScoreMaker"; "builtins.object" -> "abjad.tools.abctools.AbjadObject.AbstractBase"; }

Bases

Attribute summary

make_bound_hairpin_score_01() Make 200-note voice with p-to-f bound crescendo spanner on every 4 notes.
make_bound_hairpin_score_02() Make 200-note voice with p-to-f bound crescendo spanner on every 20 notes.
make_bound_hairpin_score_03() Make 200-note voice with p-to-f bound crescendo spanner on every 100 notes.
make_hairpin_score_01() Make 200-note voice with crescendo spanner on every 4 notes.
make_hairpin_score_02() Make 200-note voice with crescendo spanner on every 20 notes.
make_hairpin_score_03() Make 200-note voice with crescendo spanner on every 100 notes.
make_score_00() Make 200-note voice (with nothing else).
make_score_with_indicators_01() Make 200-note voice with dynamic on every 20th note:
make_score_with_indicators_02() Make 200-note staff with dynamic on every 4th note.
make_score_with_indicators_03() Make 200-note staff with dynamic on every note.
make_spanner_score_01() Make 200-note voice with durated complex beam spanner on every 4 notes.
make_spanner_score_02() Make 200-note voice with durated complex beam spanner on every 20 notes.
make_spanner_score_03() Make 200-note voice with durated complex beam spanner on every 100 notes.
make_spanner_score_04() Make 200-note voice with slur spanner on every 4 notes.
make_spanner_score_05() Make 200-note voice with slur spanner on every 20 notes.
make_spanner_score_06() Make 200-note voice with slur spanner on every 100 notes.
make_spanner_score_07() Make 200-note voice with (vanilla) beam spanner on every 4 notes.
make_spanner_score_08() Make 200-note voice with (vanilla) beam spanner on every 20 notes.
make_spanner_score_09() Make 200-note voice with (vanilla) beam spanner on every 100 notes.
__eq__(argument) Is true when ID of argument equals ID of Abjad object.
__format__([format_specification]) Formats Abjad object.
__hash__() Hashes Abjad object.
__ne__(argument) Is true when Abjad object does not equal argument.
__repr__() Gets interpreter representation of Abjad object.

Methods

BenchmarkScoreMaker.make_bound_hairpin_score_01()

Make 200-note voice with p-to-f bound crescendo spanner on every 4 notes.

2.12 (r9726) initialization:        279,448 function calls

2.12 (r9726) LilyPond format:       124,517 function calls
BenchmarkScoreMaker.make_bound_hairpin_score_02()

Make 200-note voice with p-to-f bound crescendo spanner on every 20 notes.

2.12 (r9726) initialization:        268,845 function calls

2.12 (r9726) LilyPond format:       117,846 function calls
BenchmarkScoreMaker.make_bound_hairpin_score_03()

Make 200-note voice with p-to-f bound crescendo spanner on every 100 notes.

2.12 (r9726) initialization:        267,417 function calls

2.12 (r9726) LilyPond format:       116,534 function calls
BenchmarkScoreMaker.make_hairpin_score_01()

Make 200-note voice with crescendo spanner on every 4 notes.

2.12 (r9726) initialization:        248,502 function calls
2.12 (r9728) initialization:        248,502 function calls

2.12 (r9726) LilyPond format:       138,313 function calls
2.12 (r9728) LilyPond format:       134,563 function calls
BenchmarkScoreMaker.make_hairpin_score_02()

Make 200-note voice with crescendo spanner on every 20 notes.

2.12 (r9726) initialization:        248,687 function calls
2.12 (r9728) initialization:        248,687 function calls

2.12 (r9726) LilyPond format:       134,586 function calls
2.12 (r9728) LilyPond format:       129,836 function calls
BenchmarkScoreMaker.make_hairpin_score_03()

Make 200-note voice with crescendo spanner on every 100 notes.

2.12 (r9726) initialization:        249,363 function calls
2.12 (r9726) initialization:        249,363 function calls

2.12 (r9726) LilyPond format:       133,898 function calls
2.12 (r9728) LilyPond format:       128,948 function calls
BenchmarkScoreMaker.make_score_00()

Make 200-note voice (with nothing else).

2.12 (r9710) initialization:        156,821 function calls
2.12 (r9726) initialization:        156,827 function calls

2.12 (r9703) LilyPond format:        99,127 function calls
2.12 (r9710) LilyPond format:       100,126 function calls
2.12 (r9726) LilyPond format:       105,778 function calls
BenchmarkScoreMaker.make_score_with_indicators_01()

Make 200-note voice with dynamic on every 20th note:

2.12 (r9704) initialization:        630,433 function calls
2.12 (r9710) initialization:        235,120 function calls
2.12 r(9726) initialization:        235,126 function calls

2.12 (r9704) LilyPond format:       136,637 function calls
2.12 (r9710) LilyPond format:        82,730 function calls
2.12 (r9726) LilyPond format:        88,382 function calls
BenchmarkScoreMaker.make_score_with_indicators_02()

Make 200-note staff with dynamic on every 4th note.

2.12 (r9704) initialization:      4,632,761 function calls
2.12 (r9710) initialization:        327,280 function calls
2.12 (r9726) initialization:        325,371 function calls

2.12 (r9704) LilyPond format:       220,277 function calls
2.12 (r9710) LilyPond format:        84,530 function calls
2.12 (r9726) LilyPond format:        90,056 function calls
BenchmarkScoreMaker.make_score_with_indicators_03()

Make 200-note staff with dynamic on every note.

2.12 (r9704) initialization:     53,450,195 function calls (!!)
2.12 (r9710) initialization:      2,124,500 function calls
2.12 (r9724) initialization:      2,122,591 function calls

2.12 (r9704) LilyPond format:       533,927 function calls
2.12 (r9710) LilyPond format:        91,280 function calls
2.12 (r9724) LilyPond format:        96,806 function calls
BenchmarkScoreMaker.make_spanner_score_01()

Make 200-note voice with durated complex beam spanner on every 4 notes.

2.12 (r9710) initialization:        248,654 function calls
2.12 (r9724) initialization:        248,660 function calls

2.12 (r9703) LilyPond format:       425,848 function calls
2.12 (r9710) LilyPond format:       426,652 function calls
2.12 (r9724) LilyPond format:       441,884 function calls
BenchmarkScoreMaker.make_spanner_score_02()

Make 200-note voice with durated complex beam spanner on every 20 notes.

2.12 (r9710) initialization:        250,954 function calls
2.12 (r9724) initialization:        248,717 function calls

2.12 (r9703) LilyPond format:       495,768 function calls
2.12 (r9710) LilyPond format:       496,572 function calls
2.12 (r9724) LilyPond format:       511,471 function calls
BenchmarkScoreMaker.make_spanner_score_03()

Make 200-note voice with durated complex beam spanner on every 100 notes.

2.12 (r9710) initialization:        251,606 function calls
2.12 (r9724) initialization:        249,369 function calls

2.12 (r9703) LilyPond format:       509,752 function calls
2.12 (r9710) LilyPond format:       510,556 function calls
2.12 (r9724) LilyPond format:       525,463 function calls
BenchmarkScoreMaker.make_spanner_score_04()

Make 200-note voice with slur spanner on every 4 notes.

2.12 (r9724) initialization:        245,683 function calls

2.12 (r9703) LilyPond format:       125,577 function calls
2.12 (r9724) LilyPond format:       111,341 function calls
BenchmarkScoreMaker.make_spanner_score_05()

Make 200-note voice with slur spanner on every 20 notes.

2.12 (r9724) initialization:        248,567 function calls

2.12 (r9703) LilyPond format:       122,177 function calls
2.12 (r9724) LilyPond format:       107,486 function calls
BenchmarkScoreMaker.make_spanner_score_06()

Make 200-note voice with slur spanner on every 100 notes.

2.12 (r9724) initialization:        249,339 function calls

2.12 (r9703) LilyPond format:       121,497 function calls
2.12 (r9724) LilyPond format:       106,718 function calls
BenchmarkScoreMaker.make_spanner_score_07()

Make 200-note voice with (vanilla) beam spanner on every 4 notes.

2.12 (r9724) initialization:        245,683 function calls

2.12 (r9703) LilyPond format:       125,577 function calls
2.12 (r9724) LilyPond format:       132,556 function calls
BenchmarkScoreMaker.make_spanner_score_08()

Make 200-note voice with (vanilla) beam spanner on every 20 notes.

2.12 (r9724) initialization:        248,567 function calls

2.12 (r9703) LilyPond format:       122,177 function calls
2.12 (r9724) LilyPond format:       129,166 function calls
BenchmarkScoreMaker.make_spanner_score_09()

Make 200-note voice with (vanilla) beam spanner on every 100 notes.

2.12 (r9724) initialization:        249,339 function calls

2.12 (r9703) LilyPond format:       121,497 function calls
2.12 (r9724) LilyPond format:       128,494 function calls

Special methods

(AbjadObject).__eq__(argument)

Is true when ID of argument equals ID of Abjad object. Otherwise false.

Returns true or false.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to ‘’ or ‘storage’. Interprets ‘’ equal to ‘storage’.

Returns string.

(AbjadObject).__hash__()

Hashes Abjad object.

Required to be explicitly redefined on Python 3 if __eq__ changes.

Returns integer.

(AbjadObject).__ne__(argument)

Is true when Abjad object does not equal argument. Otherwise false.

Returns true or false.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.