
BY: Ronald H. Nicholson, Jr.
DATE:1996-06-28
UPDATED:1996-09-10
COMMENTS: I (Mattias Sjöberg, the "sitemanager") did some tests with this benchmark.
I've done the tests several times. So this isn't just a coinsidence!!!
Here are the surprising results (average time in sec.).
| primes | pgap | sieve | fib(20) | tak | mb100 |
Internet Explorer 3.0 | 0.15 | 3.13 | 5.05 | 2.15 | 10.44 | 8.4 |
Netscape 2.0 | 0.42 | 10.2 | 4.78 | 1.25 | 4.34 | 39.7 |
Netscape 3.0 | 0.77 | 18.62 | 12.63 | 2.05 | 7.25 | 66.2 |
For a detailed description of the tests check below.
Briefly you can sa that Netscape 2.0 is faster with arrays and calling funtions
IE 3.0 is faster with primes, and general calculations.
Ron's Small JavaScript Benchmarks
These will run under Netscape 2.0b6 on a Mac, may not work on other systems.
Benchmark Notes
Warning: These are very small benchmarks that have poor correlationwith real benchmarks such as SPECs. - primes will calculate and display prime numbers from 5 to 1010. PRIMES.BAS took about 25 seconds to run on an Apple ][+. This benchmark is divide intensive.
- pgap will calculate primes up to 15729 and display the largest gap (prime void) between primes found so far. The pgap benchmark compiled in C took about 3 seconds of run time on a VAX 11/780.
- sieve uses a sieve algorithm to count prime numbers up to 2*8192. Byte Magazine ran a couple articles about this sieve benchmarks in '82 and '83. This benchmark is array access intensive.
- fib(20) recursively calculates the 20th fibonachi number. The fib benchmark took about a half a second to run in compiled C on a VAX 11/780. This benchmark is function call intensive.
- tak is another small recursive (Takeuchi function) benchmark that was popular for evaluating Lisp system performance in the early '80s. The tak benchmark took a around 4 seconds to run under InterLisp on a VAX 11/780.
- mb100 calculates the number of points in a 100x100 window of the Mandelbrot set with a depth of > 90. This benchmark is floating point intensive.
If you want this script just choose "Save Frame As..." (in Netscape) when you have the focus on the frame.
URL: http://www.oocities.org/SiliconValley/7116/jv_bench.html