
7-6 Test: Ensuring Stability and Performance
Writing Performance Scripts Adaptive Server Enterprise 11.5
Writing Performance Scripts
This section discusses the basics of writing performance scripts.
Write Benchmark Scripts
In general, you have to write special benchmark scripts rather than
rewriting applications as benchmarks.
To write the benchmark script:
Concurrency
and capacity
testing
Using tools like
Cyrano Workbench
and Impact,
Performix Empower,
Mercury Interactives,
LoadRunner
• Tests both front and
back ends
• Language and
looping constructs
make these
incredibly powerful
tools
• Heavy processing requirements for
test tool—may even require
additional hardware or else results
could be skewed
• Learning and development curve
to write multi-user test simulations
• Risk of bugs in test harness could
skew results
• Dependent on strong analysis of
process/transaction profiles
Transaction
generation
Thin Client to
Simulate user
execution of
transactions
• Strong multiuser
load testing
• Focus on back-end
server issues
• May increase development time for
creating multiuser test simulations,
though learning and development
curve generally less than keystroke
capture tools
• Adds time for debugging test
harness to prevent skewed results
• Depends on strong analysis of
process or transaction profiles
Production
load capture
Using tools to capture
real transactions in a
production
environment,
including
performance and
semantic
characteristics, and
resubmit in a test
environment for
analysis
• Tests real
production loads,
including ad hoc
queries
• Especially useful
when little or no
analysis of
transaction profiles
is available
• Introduces new software into a
production environment
• Production and test system
configurations must be identical for
valid performance analysis
Table 7-1: Summary of testing techniques
Technique Description Advantages Disadvantages
Comentarios a estos manuales