Got bored, Come watch OS X own all :D


Recommended Posts

Why use something quick and easy like notepad?

post-248102-1210553315_thumb.jpg

Every window after the first isn't a big deal - it's orders of magnitude less memory/cpu usage because it's sharing code that's already loaded.

To do something harder open several hundred instances of firefox and navigate to different sites. While the core code is still shared, you'll have unique data to draw for every window.

That being said, it is impressive that the underlying memory management and GUI subsystems are robust enough to handle this meany open applications.

It's nothing of the sort.

A good memory benchmark would be something like performing a traveling salesman over a multi-gigabyte data set and displaying the results as text on dozens (yes, only dozens) of rapidly scrolling text views.

This does absolutely nothing to stress the memory management or graphics systems. You could cause more stress on both just by tinkering in Quartz Composer or Core Image Funhouse for 20 minutes.

Can someone tell me how to/or make a script/automation that will open 10,000 textedit windows?

display dialog "How many Text Edit windows?" default answer "10"
set limit to text returned of result
tell application "TextEdit"
	launch
	repeat limit times
		make new document
	end repeat
end tell

To you guys who wants to test an needs a script for Windows. Here is a easy one:

Dim open, WshShell

set open = CreateObject("WScript.Shell")

numWindows = 1000 'Number of windows to open

timeBe = 200 'Time between each open window in milliseconds

For i = 1 To numWindows

open.Run("notepad.exe")

WScript.sleep timeBe

Next

Copy and save as whateveryouwant.vbs

If you want to impress someone, then open 1000 Photoshop windows on a Mac. TextEdit windows dont take up a lot of memory and are low on system resources. I can open 1000+ notepad windows on a PC and it would work the same way.

Opening numerous [empty] Photoshop documents would be more of a stability test on Photoshop than the operating system.

Just tried running the following C# program which opens 1000 notepad windows, in Windows Vista, with 2GB of ram :

namespace CSharpTest {
	class Program {
		static void Main(string[] args) {
			string path = "C:\\Windows\\System32\\notepad.exe";
			for (int i = 0; i < 1000; i++) {
				System.Diagnostics.Process.Start(path);
			}
		}
	}
}

The system went unresponsive for a minute, then Aero was disabled and a warning appeared that it had been disabled. After maybe 2 minutes, the interface became responsive again, and according to Windows there were 988 notepad windows open (weird). Each notepad window was usable. I hit printscreen and opened Paint.NET, but it crashed. I tried to open MSPaint, but it gave an error message and quit. Then the taskbar became unresponsive again, so I had no way of closing the whole group together. I couldn't close them individually either because the task manager was messed up. I ended up CTRL-ALT-DELeting out and restarting the system.

I'm a bit disappointed.

well I can open only 8 psd (+20layers) at a time (because of the openGL) but I've got only 1GB RAM and a 256MB GC ;)

Number of layer's open isn't a very useful figure.

Look at the size of document in memory. I've got a 6 layer document open that's over 3gb (billboard resolution images). I've also got a 50-ish layer document that's under 300mb (screen resolution images/vectors/text).

EDIT: also, photoshops use of the graphics accelerator is absolutely trivial when compared with the capabilities of Quartz or WDM.

start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe 
start notepad.exe && start notepad.exe

... and so forth. Tested with Windows Vista SP1 32-bit on a P4 2.8GHz/1GB RAM/Intel Graphics. I got up to ~800 total processes before I stopped it.

Tested on Windows 7, = BSOD after 60 processes :D

I didn't go through the thread but have you tried pressing expose?

Some guy did, there is a screenshot back a little.

Opening numerous [empty] Photoshop documents would be more of a stability test on Photoshop than the operating system.

Photoshop takes up a lot more memory that a simple text screen like notepad. Loading 1000 Photoshop will use a lot of system memory and I would be curious to see how the system performs then.

Photoshop takes up a lot more memory that a simple text screen like notepad. Loading 1000 Photoshop will use a lot of system memory and I would be curious to see how the system performs then.

Photoshop itself consumes more memory than a text editor, but continual empty Photoshop documents do not.

Upon launch, it used 100mb of ram. And after 50 new empty Photoshop documents (default size):

Picture%202-1236715033.png

Here is a simple batch script i wrote to open 10,000 instances of Notepad. Copy the code and save it as <something>.bat

<code>

@echo off

echo Mission: Open 10000 instances of notepad - and survive.

echo.

pause

set i=0;

:loop

if %i%==10000 goto end

set /a i+=1

start notepad.exe

goto loop

:end

echo Status: Achieved

echo %i% instances of notepad are running

echo.

echo Press any key to exit . . .

pause>nul

exit

<\code>

Hopefully your system can survive. Mine is a 2.4GHz Core 2 Duo with 4GB of RAM running the Windows 7 beta and it froze after running this script for about 5 minutes.

Wow, I had to log off to make it stop. The fans in my laptop went into overdrive. I've never heard my laptop sound like a small jet engine, seriously. In Windows Vista, you can't see the animation for opening a program after 90-100 instances of notepad.

Well I guess this puts this to rest then.

Windows XP can open millions of sessions of notepad.exe

Windows Vista can barely open 100 before getting slow and bulkey

Windows 7 just plain BSODs

Mac OS X is 1000 the record so far, maybe it's time for somebody with a Mac Pro to do an apple script for 10,000?

For the record, we should state whether or not these tests are run on Vista RTM, SP1, or SP2, along with architecture. The reason why I believe this is important is because GDI limits were raised in x86 SP1 (havent checked SP2) and x64 has an even higher ceiling.

Well I guess this puts this to rest then.

Windows XP can open millions of sessions of notepad.exe

Windows Vista can barely open 100 before getting slow and bulkey

Windows 7 just plain BSODs

Mac OS X is 1000 the record so far, maybe it's time for somebody with a Mac Pro to do an apple script for 10,000?

Just got Windows 7 (build 7000) to open and run 1000 notepad.exe sessions.

:)

Screenshot please ;)

I was running XP on my MacBook and managed to get 190 open before windows citied, OUT OF MEMORY, 190 using 2GB of RAM, thats stupid :D.

Can somebody post up an applescript for doing this on OS X, I wana see how far I can push my MacBook, we'll try for 5000 this time.

Screenshot please ;)

I was running XP on my MacBook and managed to get 190 open before windows citied, OUT OF MEMORY, 190 using 2GB of RAM, thats stupid :D .

Can somebody post up an applescript for doing this on OS X, I wana see how far I can push my MacBook, we'll try for 5000 this time.

Look up.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • It sounds like you’re trying to rewrite a narrative to align this layoff with your political beliefs. Games can be horrible, whatever backwards notions you have don’t change that bungie has problems, mostly with just bad games, and arrogance. When they pushed Microsoft to let them be independent they lost their way. They hired on a bunch of people and they couldn’t justify the employee count consistent with their revenue.
    • Trying out Noctalia v5 on CachyOS  
    • Calibre 9.10 by Razvan Serea  Calibre is an open source e-book library management application that enables you to manage your e-book collection, convert e-books between different formats, synchronize with popular e-book reader devices, and read your e-books with the included viewer. It acts as an e-library and also allows for format conversion, news feeds to e-book conversion, as well as e-book reader sync features and an integrated e-book viewer. Calibre's features include: library management; format conversion (all major ebook formats); syncing to e-book reader devices; fetching news from the Web and converting it into ebook form; viewing many different e-book formats, giving you access to your book collection over the internet using just a browser. Calibre 9.10 changelog: New features Content server: A new "modern" interface with a sidebar to ease navigation Content server: When used with HTTPS allow installation as a PWA (Progressive Web App) Edit book: Saved searches: When filtering the list of saved searches match by keywords CSS parsing: Add support for CSS Level 4 selectors Cover grid: When using an image larger than the viewport as a texture scale it to fit the viewport Annotations browser: Allow restricting displayed annotations by custom annotation styles as well Edit book: Compress images: Add option to convert PNG images to JPEG or WEBP Bug fixes E-book viewer: Fix IME on Windows not working when typing in notes for highlights Conversion: Heuristics: Improve performance in some pathological cases SNB Input: Fix error on some input files Windows: fix rare crash when too many notifications are displayed at once Fix duplicating of books not duplicating value from enumerated columns when the column has a default value defined Fix a regression in 9.8 that caused errors from AI plugin providers to be silently swallowed and not displayed to user Fix CSV export invalid when exporting comments field Disallow Python templates when reading book metadata (CVE-2026-53511) Improved news sources The Week Economist Espresso Horizons Download: Calibre 9.10 | Portable | ~200.0 MB (Open Source) Download: Calibre for MacOS | 327.0 MB Download: Calibre for Linux View: Calibre Home Page | Calibre Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Malwarebytes Anti-Malware 5.6.1.257 by Razvan Serea Malwarebytes is a high performance anti-malware application that thoroughly removes even the most advanced malware and spyware. Malwarebytes version 5.**** brings comprehensive protection against today’s threat landscape so that you can finally replace your traditional antivirus. You can finally replace your traditional antivirus, thanks to a innovative and layered approach to prevent malware infections using a healthy combination of proactive and signature-less technologies. While signatures are still effective against threats like potentially unwanted programs, the majority of malware detection events already come from signature-less technologies like Malwarebytes Anti-Exploit and Malwarebytes Anti-Ransomware; that trend will only continue to grow. For many of you, this is something you already know, since over 50% of the users already run Malwarebytes as their sole security software, without any third-party antivirus. What's new in Malwarebytes 5.****: Unified user experience - For the first time, Malwarebytes now provides a consistent experience across all of our desktop and mobile products courtesy of an all new and reimagined user experience powered by a faster and more responsive UI all managed through an intuitive dashboard. Modern security and privacy integrations - Antivirus and ultra-fast VPN come together seamlessly in one easy-to-use solution. Whether you’re looking for a next-gen VPN to secure your online activity, or harnessing the power of Browser Guard to block ad trackers and scam sites, taking charge of your privacy is simple. Trusted Advisor - Empowers you with real-time insights, easy-to-read protection score and expert guidance that puts you in control over your security and privacy. Malwarebytes 5.6.1.257 changelog: Features and improvements Updated the sign-in section of the My Subscription page to clarify that users can activate their subscription by signing in with their Malwarebytes account. Updated the uninstall flow to collect more meaningful insights and address customer concerns. Refreshed the app's tutorial layout for a better look and feel. Issues fixed Fixed an outdated link when clicking Take action after running a Digital Footprint Scan. Miscellaneous bug fixes. Download: Malwarebytes 5.6.1.257 | 472.0 MB (Free, paid upgrade available) Links: Malwarebytes Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      xvvxcvv earned a badge
      Week One Done
    • One Month Later
      xvvxcvv earned a badge
      One Month Later
    • Enthusiast
      Xonos went up a rank
      Enthusiast
    • Conversation Starter
      Admir earned a badge
      Conversation Starter
    • First Post
      The_Focal_Point earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      405
    2. 2
      +Edouard
      168
    3. 3
      PsYcHoKiLLa
      129
    4. 4
      neufuse
      69
    5. 5
      Xenon
      68
  • Tell a friend

    Love Neowin? Tell a friend!