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 0.970.9878,1561485  0% 0% 100% 1%
1.0PyPy 2 #2 0.990.9977,6241485  0% 0% 0% 100%
1.0PyPy 2 #2 0.991.0077,7641485  1% 100% 1% 0%
1.0PyPy 2 1.021.0278,1081579  100% 1% 0% 1%
1.1PyPy 2 1.041.0478,1321579  0% 100% 8% 1%
1.1PyPy 2 1.041.0578,0801579  5% 100% 3% 4%
1.1PyPy 3 1.091.0947,7121540  95% 1% 6% 1%
1.1PyPy 3 1.101.1047,7361540  9% 1% 3% 100%
1.2PyPy 3 #2 1.131.1347,8201443  7% 100% 7% 9%
1.2PyPy 3 #2 1.151.1547,7841443  100% 10% 7% 9%
1.2PyPy 3 1.191.1947,6921540  12% 8% 100% 7%
1.3PyPy 3 #2 1.241.2447,7641443  12% 100% 9% 14%
2.2PyPy 2 #3 2.132.1376,8481354  100% 1% 1% 4%
2.2PyPy 2 #3 2.152.1676,5201354  100% 0% 6% 1%
2.2PyPy 2 #3 2.172.1876,2601354  0% 100% 0% 0%
2.3PyPy 3 #3 2.212.2246,1121334  5% 100% 0% 2%
2.3PyPy 3 #3 2.222.2246,1121334  6% 3% 100% 0%
2.3PyPy 3 #3 2.292.3046,3081334  6% 5% 5% 98%
2.5Pyston #2 2.462.4830,8961485  100% 14% 7% 15%
2.6Pyston #2 2.492.5030,8561485  13% 10% 16% 100%
2.7Pyston #2 2.612.6237,9761485  8% 100% 2% 2%
2.8Pyston 2.752.7630,8001579  100% 1% 1% 4%
2.8Pyston 2.762.7630,9481579  2% 3% 1% 100%
3.2Nuitka #2 3.173.1710,4081443  46% 42% 2% 19%
3.3Nuitka #2 3.183.1810,6001443  9% 4% 92% 3%
3.3Pyston 3.233.2339,5721579  100% 2% 1% 3%
3.3Nuitka #2 3.243.2410,5841443  7% 5% 3% 100%
3.9Python 2 #2 3.773.776,6001485  100% 5% 0% 3%
3.9Python 2 #2 3.793.806,6001485  6% 100% 1% 3%
3.9Nuitka 3.823.8210,4241540  3% 1% 5% 100%
3.9Nuitka 3.833.8310,3601540  71% 5% 31% 3%
3.9Nuitka 3.833.8410,6161540  100% 5% 2% 5%
3.9Python 2 #2 3.843.846,6001485  3% 3% 100% 1%
4.7Python 3 #2 4.554.558,7081443  0% 100% 0% 0%
4.7Python 3 #2 4.604.608,7961443  2% 100% 0% 3%
4.7Python 3 #2 4.624.628,8441443  0% 1% 100% 3%
5.3Cython #3 5.135.139,4481334  1% 100% 0% 3%
5.3Nuitka #3 5.145.1512,4361334  39% 4% 63% 4%
5.3Nuitka #3 5.185.1812,4361334  11% 3% 93% 3%
5.4Pyston #3 5.275.2730,6241354  2% 2% 1% 100%
5.4Nuitka #3 5.285.2812,6521334  2% 6% 4% 100%
5.4Cython #3 5.295.299,4081334  6% 100% 7% 4%
5.5Cython #3 5.325.339,4241334  33% 5% 72% 4%
5.5Pyston #3 5.345.3430,7761354  4% 100% 2% 2%
5.7Python 2 5.555.556,4201579  74% 2% 31% 2%
5.7Python development version #2 5.565.578,2641443  2% 100% 2% 1%
5.8Python 2 5.625.656,5681579  32% 42% 37% 5%
5.8Python development version #2 5.655.658,2241443  18% 1% 85% 2%
5.8Python development version #2 5.675.678,1921443  100% 2% 2% 2%
6.0Pyston #3 5.845.8438,4881354  8% 7% 8% 100%
6.2Python 3 6.076.089,2641540  100% 0% 0% 0%
6.2Python 3 #3 6.086.0811,2761334  54% 4% 48% 0%
6.3Python 3 #3 6.146.1511,2961334  1% 100% 1% 3%
6.3Python 3 6.156.159,3401540  100% 1% 1% 1%
6.3Python 2 6.136.176,4961579  24% 19% 23% 98%
6.3Python 3 6.196.199,3401540  0% 100% 1% 1%
6.4Python 3 #3 6.206.2111,2121334  0% 0% 0% 100%
6.7Python development version #3 6.526.529,9801334  100% 6% 2% 2%
6.8Python 2 #3 6.616.617,0281354  2% 5% 100% 0%
6.8Python 2 #3 6.626.627,1161354  2% 100% 1% 1%
6.8Python 2 #3 6.636.637,2921354  3% 100% 1% 2%
7.0Python development version #3 6.886.8810,0681334  2% 100% 2% 2%
7.1Python development version #3 6.896.909,9041334  8% 8% 11% 100%
7.9Python development version 7.737.747,7361540  3% 100% 1% 2%
7.9Python development version 7.767.777,7081540  50% 3% 52% 1%
8.0Python development version 7.797.797,6081540  1% 4% 1% 100%
10Jython #3 17.9610.07318,1161354  44% 59% 39% 42%
11Jython #3 17.8010.27318,0281354  45% 79% 29% 27%
11Jython #3 18.3910.34323,2601354  51% 38% 54% 43%
11Jython #2 20.0910.92316,3441485  63% 58% 38% 56%
12IronPython #2 11.5811.4880,5361485  12% 3% 89% 1%
12Jython #2 21.7611.51333,9241485  54% 63% 62% 44%
12IronPython #3 11.6211.5485,5361354  19% 18% 15% 93%
12IronPython #3 11.4911.5687,2361354  29% 13% 74% 19%
12Jython 20.8811.84320,8081579  43% 45% 48% 48%
12Jython #2 21.8011.94313,2401485  69% 75% 57% 52%
12IronPython #2 11.7311.9778,4561485  3% 11% 11% 79%
12IronPython #2 11.9711.9878,4081485  3% 10% 2% 92%
12IronPython #3 11.6311.9887,4881354  9% 17% 96% 16%
13Jython 21.8712.22310,1801579  62% 62% 32% 30%
13Jython 22.6212.40324,3641579  53% 51% 56% 29%
13IronPython 12.7612.9881,8481579  5% 4% 15% 88%
14IronPython 14.0713.9882,3681579  10% 7% 12% 99%
14IronPython 13.7414.0477,7921579  77% 15% 24% 12%
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