Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9050421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:38:31+00:00 2026-06-16T12:38:31+00:00

Is it necessary to conduct performance testing in unit test? If so, what is

  • 0

Is it necessary to conduct performance testing in unit test? If so, what is the best practice? If not, please provide the rationale.

A example could be unit test against the efficiency of a filter be asserting the time to complete filtering.

This is just an example. However, I’d like to get advice on the open question instead of a detailed solution for the question above. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T12:38:32+00:00Added an answer on June 16, 2026 at 12:38 pm

    No, it’s certainly not necessary and probably not even useful. Not necessary because most code you write will be plenty performant, and your time is better spent elsewhere. Not useful because if you try to measure performance during your unit tests, your results will be wrong because the JVM that’s running the tests almost definitely isn’t similar to where your code will ultimately run in several ways including the kinds of activities occurring concurrently with the code under test, garbage collection self-tuning, general JVM settings, and JIT compilation, to name a handful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

not necessary an UML diagram, just a simple way to graphically document the relations
I'm struggle extracting necessary data from this json stored inside php variable. Not yet
Is using self ever necessary in Objective-C or maybe just a good practice? I
My task is necessary and shouldn't be canceled, how do I ask ProgressMonitor not
Is it necessary to provide strong name to an assembly before putting it in
Is it necessary or bad practice to repeat properties that aren't changing in each
I think it is necessary to de-normaize database for user notifications. For example, when
Are header files necessary for Objective-C unit tests? When using OCUnit, GHUnit, or GTM
It is necessary that Daylight Savings is not disabled.
Is it necessary to write <html> , <head> and <body> tags? For example, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.