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

  • Home
  • SEARCH
  • 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 6811503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:20:10+00:00 2026-05-26T20:20:10+00:00

I have created a JSFiddle to see how much data I can push into

  • 0

I have created a JSFiddle to see how much data I can push into my browser.

The link is http://jsfiddle.net/GWxAk/

The code is simple. It’s just trying to push as many strings as possible into an array.
The strings have an approximate length of 300-310 characters.

My question is:
does the result depend on how much memory I have got on my PC ?
does it really differ browser to browser ?

For instance if I have 8gb of ram will I get much more then if I have 4gb ?

var s = '';
for (var i = 0; i < 300; i++) {
    s += 'a';
}

array = [];
count = 0;

function doMore() {
    for (var i = 0; i < 1000; i++) {
        count++;
        array.push(s + count);
    }
};

function repeat() {
    doMore();
    document.body.innerHTML = 'size:' + array.length;
    setTimeout(repeat, 100);
}

repeat();

In my case chrome hangs at 14850000 and I have 4gb of ram
That is an array of almost 15 million items. Not bad I guess

Do you guys get the same ?
Can somebody tell how to give as much memory as possible to the browser

Thanks

  • 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-05-26T20:20:11+00:00Added an answer on May 26, 2026 at 8:20 pm

    Again, my machine with 16GB of RAM. I can watch the browser RAM usage climb as it increases, so I would assume it’s limited by RAM as well.

    IE crapped out at 16,840,000
    Chrome at 14,850,000
    Firefox 32,890,000
    Safari recycles itself around 8,720,000 (LOL @ Apple)
    

    Here is a screenshot of memory usage and firefox http://screencast.com/t/3Xl31yGgHWC

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

Sidebar

Related Questions

I have created fiddle here: http://jsfiddle.net/ozzy/WEGMh/ How it should look is here: Issue is
Example to demonstrate the issue can be found here: http://jsfiddle.net/Byyu2/ As you can see
I have this javascript code that creates a slider: http://jsfiddle.net/samccone/ZMkkd/ Now, i want to
I have created a JSFiddle of my case here: http://jsfiddle.net/gGCaX/ (Please take a look,
I have created a webservice in .net 2.0, C#. I need to log some
I have created an accordion menu. Here is my js code: var menu =
I'm really struggling with a jQuery animation. Please see jsfiddle where I have posted
Have created a c++ implementation of the Hough transform for detecting lines in images.
I have created a template for Visual Studio 2008 and it currently shows up
I have created a custom dialog for Visual Studio Setup Project using the steps

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.