Editing
Non-Functional Requirements
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== 2. Performance == <span id="nfr-perf-01-generation-throughput"></span> === NFR-PERF-01 β Generation throughput === '''Requirement:''' The system should generate and insert at least 1,000 primes per second under normal operating conditions (single-user, unloaded PostgreSQL on localhost).<br /> '''Rationale:''' There are approximately 50 million primes below 10^9. Without a throughput target the system may be functionally correct but practically unusable.<br /> '''Test approach:''' Time a generation run of the first 10,000 primes; divide by elapsed seconds.<br /> '''Priority:''' Should Have<br /> '''Source:''' Best-practice default [UNCONFIRMED β no target specified in source]<br /> '''Status:''' Open β target must be agreed with the system owner. <span id="nfr-perf-02-report-generation-time"></span> === NFR-PERF-02 β Report generation time === '''Requirement:''' A report covering up to 1 million stored primes should complete within 5 minutes.<br /> '''Rationale:''' A batch report that runs overnight is operationally acceptable; one that runs for days is not.<br /> '''Test approach:''' Seed 1,000,000 rows; time a full report run.<br /> '''Priority:''' Should Have<br /> '''Source:''' Best-practice default [UNCONFIRMED]<br /> '''Status:''' Open. <span id="nfr-perf-03-database-query-response"></span> === NFR-PERF-03 β Database query response === '''Requirement:''' The <code>SELECT prime WHERE ident = :n</code> divider lookup should return in under 50 ms at any point in the generation run.<br /> '''Rationale:''' This query is called once per trial division step; if it is slow, the entire sieve is slow.<br /> '''Test approach:''' Run EXPLAIN ANALYZE on the query with a populated table; check absence of sequential scan on <code>primes.primes</code>.<br /> '''Priority:''' Must Have<br /> '''Source:''' Algorithm design analysis<br /> '''Status:''' Open β no index on <code>ident</code> is defined in <code>primes_schema.sql</code>; a sequential scan is likely. This is a defect. ----- <span id="reliability-and-availability"></span>
Summary:
Please note that all contributions to Webhuis wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Voorpagina
Cobol and PostgreSQL
PostgreSQL
CFEngine
Proxmox
Webhuis Kennisbank
Basale infra
Webhuis bouwstenen
Webhuis configuratie
Webhuis Infra
Webhuis Support
Webhuis Raspberry
Opzet Applicaties
Business Applicaties
Community portal
Current events
Recent changes
Random page
Help
sitesupport
Tools
What links here
Related changes
Special pages
Page information