meteor-contest benchmark N=2,098

Each chart bar shows how many times slower, one ↓ meteor-contest program was, compared to the fastest program.

These are not the only programs that could be written. These are not the only compilers and interpreters. These are not the only programming languages.

Column × shows how many times more each program used compared to the benchmark program that used least.

    sort sortsort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0PyPy 2 #2 1.081.0881,8881485  1% 0% 9% 91%
1.0PyPy 2 #2 1.101.1082,3401485  0% 2% 2% 99%
1.0PyPy 2 #2 1.101.1082,0961485  0% 100% 0% 2%
1.1PyPy 3 #2 1.151.1571,5521443  7% 93% 2% 1%
1.1PyPy 3 #2 1.161.1671,5441443  1% 2% 99% 1%
1.1PyPy 3 #2 1.161.1671,6921443  1% 0% 100% 2%
1.1PyPy 3 1.171.1772,2721540  100% 1% 1% 0%
1.1PyPy 3 1.181.1872,2161540  92% 1% 0% 7%
1.1PyPy 3 1.181.1872,2281540  2% 1% 8% 100%
1.2PyPy 2 1.261.2682,4761579  13% 100% 43% 15%
1.2PyPy 2 1.281.2882,4801579  22% 22% 35% 100%
1.3PyPy 2 1.221.4682,1201579  15% 16% 79% 14%
2.3Pyston #2 2.462.4830,8961485  100% 14% 7% 15%
2.3Pyston #2 2.492.5030,8561485  13% 10% 16% 100%
2.4PyPy 2 #3 2.562.5679,5801354  0% 1% 0% 100%
2.4PyPy 3 #3 2.572.5770,1241334  100% 1% 1% 0%
2.4PyPy 3 #3 2.572.5770,0921334  100% 0% 1% 0%
2.4PyPy 2 #3 2.582.5880,3881354  1% 2% 0% 100%
2.4PyPy 2 #3 2.612.6180,0081354  0% 0% 100% 3%
2.4Pyston #2 2.612.6237,9761485  8% 100% 2% 2%
2.5Pyston 2.752.7630,8001579  100% 1% 1% 4%
2.5Pyston 2.762.7630,9481579  2% 3% 1% 100%
2.6PyPy 3 #3 2.612.7770,1201334  93% 4% 3% 7%
2.8Nuitka #2 3.073.0710,8641443  100% 1% 1% 1%
2.9Nuitka #2 3.123.1211,1761443  100% 0% 2% 1%
2.9Nuitka #2 3.143.1410,9361443  1% 100% 1% 3%
3.0Pyston 3.233.2339,5721579  100% 2% 1% 3%
3.4Nuitka 3.653.6510,7161540  100% 1% 2% 2%
3.4Nuitka 3.713.7110,6321540  2% 2% 100% 1%
3.4Nuitka 3.713.7210,9241540  3% 100% 2% 3%
3.5Python 2 #2 3.773.776,6001485  100% 5% 0% 3%
3.5Python 2 #2 3.793.806,6001485  6% 100% 1% 3%
3.5Python 2 #2 3.843.846,6001485  3% 3% 100% 1%
4.2Cython #3 4.504.5011,3201334  2% 0% 0% 100%
4.2Cython #3 4.554.5511,2281334  0% 100% 0% 2%
4.2Cython #3 4.564.5611,2281334  1% 2% 0% 100%
4.2Python 3 #2 4.604.609,0761443  0% 100% 0% 0%
4.3Python 3 #2 4.644.649,0881443  0% 0% 0% 100%
4.3Python 3 #2 4.664.679,0081443  0% 0% 0% 100%
4.5Nuitka #3 4.864.8612,8361334  1% 1% 1% 100%
4.5Nuitka #3 4.924.9212,7041334  1% 2% 2% 100%
4.6Nuitka #3 4.964.9612,7801334  1% 2% 1% 100%
4.9Pyston #3 5.275.2730,6241354  2% 2% 1% 100%
4.9Pyston #3 5.345.3430,7761354  4% 100% 2% 2%
5.1Python 2 5.555.556,4201579  74% 2% 31% 2%
5.1Python development version #2 5.565.578,2641443  2% 100% 2% 1%
5.2Python 2 5.625.656,5681579  32% 42% 37% 5%
5.2Python development version #2 5.655.658,2241443  18% 1% 85% 2%
5.2Python development version #2 5.675.678,1921443  100% 2% 2% 2%
5.4Pyston #3 5.845.8438,4881354  8% 7% 8% 100%
5.6Python 3 #3 6.116.1211,2201334  0% 100% 0% 0%
5.7Python 3 #3 6.136.1311,1601334  0% 100% 0% 0%
5.7Python 2 6.136.176,4961579  24% 19% 23% 98%
5.7Python 3 #3 6.186.1811,2121334  0% 0% 100% 0%
5.8Python 3 6.256.258,9121540  0% 0% 1% 100%
5.8Python 3 6.276.278,9361540  0% 0% 100% 0%
5.8Python 3 6.296.308,7641540  0% 0% 0% 100%
6.0Python development version #3 6.526.529,9801334  100% 6% 2% 2%
6.1Python 2 #3 6.616.617,0281354  2% 5% 100% 0%
6.1Python 2 #3 6.626.627,1161354  2% 100% 1% 1%
6.1Python 2 #3 6.636.637,2921354  3% 100% 1% 2%
6.3Python development version #3 6.886.8810,0681334  2% 100% 2% 2%
6.4Python development version #3 6.896.909,9041334  8% 8% 11% 100%
7.1Python development version 7.737.747,7361540  3% 100% 1% 2%
7.2Python development version 7.767.777,7081540  50% 3% 52% 1%
7.2Python development version 7.797.797,6081540  1% 4% 1% 100%
10Jython #2 19.4111.18285,9761485  42% 48% 48% 53%
10Jython #3 19.2611.20291,0601354  47% 68% 35% 31%
10Jython #2 19.7411.29286,7521485  50% 38% 46% 59%
10Jython #3 20.0611.37292,3921354  57% 61% 34% 38%
11Jython #3 19.0111.44292,6401354  37% 66% 37% 37%
11Jython #2 20.9311.46302,2001485  54% 66% 38% 41%
11IronPython #2 11.7711.5559,1001485  9% 53% 1% 39%
11IronPython #2 12.0012.0559,8321485  26% 1% 72% 1%
11IronPython #2 11.9112.0561,6641485  4% 6% 1% 88%
12IronPython 12.8612.5664,2081579  89% 11% 1% 1%
12Jython 21.9012.86292,8961579  47% 45% 47% 40%
12IronPython 13.0613.0663,7481579  97% 1% 2% 1%
12IronPython 12.9813.0760,0321579  96% 1% 1% 1%
12Jython 24.3213.40304,0321579  55% 53% 34% 55%
12Jython 23.4413.46292,6561579  42% 53% 47% 45%
missing benchmark programs
Shedskin No program
Numba No program
MicroPython No program
Grumpy No program

 meteor-contest benchmark : Search for solutions to shape packing puzzle

This is a contest - different algorithms may be used.

You are expected to diff the output from your program N = 2098 against this output file before you contribute your program.

The Meteor Puzzle board is made up of 10 rows of 5 hexagonal Cells. There are 10 puzzle pieces to be placed on the board, we'll number them 0 to 9. Each puzzle piece is made up of 5 hexagonal Cells. As different algorithms may be used to generate the puzzle solutions, we require that the solutions be printed in a standard order and format. Here's one approach - working along each row left to right, and down the board from top to bottom, take the number of the piece placed in each cell on the board, and create a string from all 50 numbers, for example the smallest puzzle solution would be represented by

00001222012661126155865558633348893448934747977799

Print the smallest and largest Meteor Puzzle 50 character solution string in this format to mimic the hexagonal puzzle board:

0 0 0 0 1 
 2 2 2 0 1 
2 6 6 1 1 
 2 6 1 5 5 
8 6 5 5 5 
 8 6 3 3 3 
4 8 8 9 3 
 4 4 8 9 3 
4 7 4 7 9 
 7 7 7 9 9 

The command line parameter N should limit how many solutions will be found before the program halts, so that you can work with just a few solutions to debug and optimize your program.

Diff program output N = 2098 against the output file to check the format is correct.

The Meteor Puzzle and 3 Java puzzle solvers are described in "Optimize your Java application's performance" (pdf).

Revised BSD license

  Home   Conclusions   License   Play