Jump to content

File:Hamilton C shell and Cygwin bash recursion.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (1,280 × 800 pixels, file size: 457 KB, MIME type: image/png)

Summary

Description

Hamilton C shell and Cygwin bash recursion under Windows 7. Shows the contrasting language styles and relative performance of Hamilton C shell and Cygwin bash factoring a number using recursive shell scripts. The elapsed time using the compiled Cygwin binary to do the factoring is also shown for comparison.

Timing a recursive shell procedure or function factoring a large number is a test of how fast the shell is able to evaluate simple expressions and interpret its language constructs, especially for iteration and condition-testing. Since there are no child processes being spawned and only three lines of output are generated, the time spent in system calls is quite small.

In this example, the compiled Cygwin binary factored 1234123412 in 0.082 seconds. Bash required 1.778 seconds. Hamilton C shell required 0.1 seconds, making it nearly as fast as the compiled binary and roughly 18x as fast as bash.

System configuration:

  • Standard 2008 aluminum MacBook
  • Intel Core 2 Duo @ 2.4GHz
  • 4.0GB RAM
  • 64-bit Windows 7 Ultimate
  • 160GB C: partition, 60% free
Date
Source Screenshot from Msnicki's personal MacBook, Oct 17 2010
Author Msnicki
Permission
(Reusing this file)
VRT Wikimedia

This work is free and may be used by anyone for any purpose. If you wish to use this content, you do not need to request permission as long as you follow any licensing requirements mentioned on this page.

The Wikimedia Foundation has received an e-mail confirming that the copyright holder has approved publication under the terms mentioned on this page. This correspondence has been reviewed by a Volunteer Response Team (VRT) member and stored in our permission archive. The correspondence is available to trusted volunteers as ticket #2017012310002162.

If you have questions about the archived correspondence, please use the VRT noticeboard. Ticket link: https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber=2017012310002162
Find other files from the same ticket: SDC query (SPARQL)

Licensing

w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Original upload log

The original description page was here. All following user names refer to en.wikipedia.
Date/Time Dimensions User Comment
2010-10-17 22:18:12 1280 × 800 Msnicki == Summary == == Summary == {{Non-free use rationale |Article = Hamilton C shell |Description = [[Hamilton C shell]] and [[Cygwin]] [[Bash (Unix shell)|bash]] recursion under [[Windows 7]]. |Source = Screenshot from [[User:Ms

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

17 October 2010

image/png

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current22:40, 21 March 2017Thumbnail for version as of 22:40, 21 March 20171,280 × 800 (457 KB)FastilyCloneTransferred from en.wikipedia (MTC!)

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata