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.890.8984,9041485  1% 5% 0% 100%
1.0PyPy 2 #2 0.890.9084,9241485  0% 7% 2% 100%
1.0PyPy 2 #2 0.890.9185,0481485  98% 6% 2% 2%
1.0PyPy 3 #2 0.920.9375,3161443  91% 1% 2% 10%
1.1PyPy 2 0.930.9584,3201579  97% 8% 3% 3%
1.1PyPy 3 #2 0.940.9575,3041443  2% 6% 3% 100%
1.1PyPy 3 #2 0.950.9675,3921443  100% 3% 7% 4%
1.1PyPy 3 0.960.9675,9521540  3% 100% 3% 3%
1.1PyPy 2 0.970.9884,9361579  1% 5% 1% 100%
1.1PyPy 3 0.970.9875,4361540  100% 1% 4% 1%
1.1PyPy 3 0.970.9975,4401540  10% 89% 3% 1%
1.1PyPy 2 0.951.0085,0481579  2% 100% 4% 0%
1.9Pyston #2 1.741.7430,1561485  0% 0% 99% 0%
2.0Pyston #2 1.741.7429,9721485  3% 98% 0% 0%
2.0Pyston #2 1.741.7428,0161485  100% 0% 1% 0%
2.3Pyston 2.052.0530,0601579  0% 100% 0% 0%
2.3Pyston 2.052.0530,0041579  100% 0% 0% 0%
2.3Pyston 2.062.0630,0121579  0% 0% 2% 98%
2.4PyPy 2 #3 2.122.1282,9361354  100% 5% 1% 1%
2.4PyPy 2 #3 2.132.1582,7361354  0% 5% 0% 99%
2.4PyPy 2 #3 2.132.1682,9681354  1% 5% 1% 100%
2.4PyPy 3 #3 2.172.1873,8241334  3% 100% 4% 2%
2.4PyPy 3 #3 2.172.1973,9521334  3% 2% 99% 2%
2.5PyPy 3 #3 2.182.2174,0121334  2% 2% 100% 1%
2.9Nuitka #2 2.612.6210,0921443  100% 5% 1% 0%
2.9Python 2 #2 2.612.627,1321485  1% 0% 1% 100%
3.0Python 2 #2 2.642.657,1561485  3% 100% 1% 2%
3.0Python 2 #2 2.642.657,0921485  77% 2% 25% 1%
3.0Nuitka #2 2.662.6710,1561443  1% 6% 1% 100%
3.1Nuitka #2 2.612.7310,1281443  1% 100% 1% 1%
3.4Nuitka 3.053.0610,1561540  1% 5% 100% 1%
3.6Nuitka 3.103.2510,1761540  0% 100% 0% 1%
3.7Nuitka 3.133.2710,1881540  1% 100% 1% 1%
3.7Python 3 #2 3.313.328,8201443  6% 4% 4% 99%
3.7Python 3 #2 3.323.328,8161443  7% 6% 3% 100%
3.9Python 3 #2 3.403.468,8521443  44% 5% 64% 4%
4.0Cython #3 3.553.5611,0641334  6% 1% 1% 100%
4.1Cython #3 3.633.6411,1081334  6% 3% 100% 1%
4.1Cython #3 3.633.6411,1841334  6% 6% 1% 100%
4.2Python development version #2 3.723.738,1521443  100% 6% 1% 1%
4.2Python development version #2 3.733.748,2121443  100% 5% 1% 0%
4.2Python development version #2 3.763.778,0321443  1% 5% 0% 100%
4.3Python 2 3.793.807,0521579  14% 1% 87% 4%
4.3Python 2 3.803.807,0761579  8% 2% 93% 2%
4.3Python 2 3.853.866,9161579  3% 1% 100% 1%
4.6Nuitka #3 4.114.1211,9241334  1% 7% 100% 0%
4.7Nuitka #3 4.194.1911,8681334  1% 5% 0% 100%
4.7Pyston #3 4.234.2330,4481354  0% 0% 0% 100%
4.7Pyston #3 4.234.2330,3201354  1% 99% 0% 0%
4.7Pyston #3 4.234.2330,2761354  0% 0% 100% 0%
4.8Python 2 #3 4.304.317,6961354  0% 1% 100% 1%
4.8Python 3 4.334.338,9121540  7% 2% 2% 100%
4.9Nuitka #3 4.144.3311,8081334  0% 100% 0% 1%
4.9Python 2 #3 4.364.367,5401354  1% 1% 1% 100%
4.9Python 2 #3 4.354.377,5321354  2% 100% 2% 1%
4.9Python 3 4.394.408,8441540  7% 4% 4% 100%
5.0Python 3 4.374.478,9001540  54% 4% 6% 55%
5.5Python development version #3 4.894.9010,4041334  100% 5% 0% 1%
5.5Python 3 #3 4.804.9010,9601334  48% 11% 16% 52%
5.5Python development version 4.924.938,3281540  100% 5% 0% 1%
5.6Python 3 #3 4.984.9911,1121334  14% 13% 8% 100%
5.6Python development version #3 4.994.9910,4441334  1% 6% 1% 100%
5.6Python development version 5.035.038,5401540  1% 5% 100% 1%
5.7Python development version #3 4.865.0910,4881334  1% 100% 0% 1%
5.7Python development version 5.105.118,3881540  1% 5% 1% 100%
5.7Python 3 #3 4.885.1311,1401334  100% 7% 7% 5%
8.3Jython #2 12.517.41307,5761485  25% 40% 49% 55%
8.5Jython #2 12.667.55311,7961485  42% 41% 36% 48%
8.6Jython #3 12.957.69303,3281354  35% 62% 34% 37%
8.6Jython #2 13.337.70319,3601485  51% 40% 36% 46%
8.8Jython #3 13.537.82308,0281354  33% 48% 64% 28%
9.2Jython #3 13.558.20314,7721354  47% 29% 60% 29%
9.3Graal #2 17.398.27763,6841443  60% 33% 77% 50%
9.5Graal #2 17.758.47794,2721443  46% 65% 70% 37%
9.8Graal #2 18.408.74840,2201443  44% 66% 49% 61%
10Jython 15.039.07312,0961579  61% 33% 39% 33%
10Jython 15.389.08309,5681579  34% 46% 39% 51%
10Jython 15.239.16315,1881579  28% 47% 49% 43%
11Graal 20.239.72729,2681540  56% 32% 61% 70%
11Graal 20.549.79685,0921540  20% 61% 69% 69%
11Graal 20.9210.26716,3161540  29% 74% 55% 55%
missing benchmark programs
IronPython No program
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