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 8369831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:45:20+00:00 2026-06-09T13:45:20+00:00

I was trying to compare performance of two statements with timeit , and the

  • 0

I was trying to compare performance of two statements with timeit, and the results are something like:

 100 loops, best of 3: 100 ns per loop
 100 loops, best of 3: 1.96 us per loop

But I don’t know what these ns and us stands for, so I don’t know which one is faster.

  • 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-09T13:45:22+00:00Added an answer on June 9, 2026 at 1:45 pm

    ns stands for nanoseconds. n is the regular SI prefix meaning 10-9. us means microseconds. In SI that would be µs (10-6 seconds) – the u is used because there’s not a µ in ASCII, but it does look pretty similar. In your case, that means you’re comparing 100×10-9 seconds against 1.96×10-6 seconds – the former is almost 20× faster.

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

Sidebar

Related Questions

Im trying to compare these two chars but on win 32 Visual Studio 2008:
I'm trying to compare two strings and as output I would like a count
I am trying to compare the performance of several Javascript libraries. Although measuring transaction
I am trying to compare two tools execution time, which I have installed in
I'm trying to compare the differences between jQuery and JavaScript in a project, but
I am trying to compare the performance of Haskell lists and arrays and run
I am trying to compare the performance of a specific F# benchmark running on
I am trying to compare performance between raw pointers, boost shared_ptr and boost weak_ptr.
I am trying to compare the hg remote operation performance (pull, push, clone) using
I'm trying to compare GPU to CPU performance. For the NVIDIA GPU I've been

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.