Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Shootout test between lua/luajit/java/php
Java JavaScript PHP Lua
branch: master

This branch is 2 commits ahead of chaoslawful:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Makefile
README.md
binarytrees.java
binarytrees.js
binarytrees.lua
binarytrees.php
fannkuchredux.java
fannkuchredux.js
fannkuchredux.lua
fannkuchredux.php
fasta.java
fasta.js
fasta.lua
fasta.php
mandelbrot.java
mandelbrot.js
mandelbrot.lua
mandelbrot.php
nbody.java
nbody.js
nbody.lua
nbody.php
spectralnorm.java
spectralnorm.js
spectralnorm.lua
spectralnorm.php

README.md

shootout

Shootout test between lua/luajit/java/php/nodejs

results

ngx_lua 内幕

               |   lua   |  luajit  |  nodejs  |   java   |   php
fasta          |   6.84  |   1.15   |   4.79   |   1.90   |   21.29 
nbody          |  61.68  |   2.27   |   3.69   |   1.86   |  108.29
spectral-norm  |  91.87  |   3.15   |   3.50   |   4.01   |  237.42
binary-trees   |  30.10  |   7.05   |   1.46   |   1.12   |   --
mandelbrot     |  75.16  |   3.24   | *50.99   |   1.14   |   --
fannkuchredux  | 187.46  |   7.57   |   6.21   |   3.31   |   --

2.4 GHz Intel Core 2 Duo, 8 GB 1067 MHz DDR3

  • Lua 5.1.4
  • luajit 2.0.0-beta9
  • node v0.8.1
  • java version "1.6.0_33"
  • PHP 5.3.10 with Suhosin-Patch (cli)

mandelbrot for v8 result is UNEXPECTED OUTPUT.

Something went wrong with that request. Please try again.