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.780.7875,0961485  0% 0% 1% 100%
1.0PyPy 2 #2 0.780.7875,1881485  0% 0% 100% 1%
1.0PyPy 2 #2 0.780.7875,1841485  4% 97% 0% 0%
1.0PyPy 2 0.810.8276,4041579  98% 0% 0% 2%
1.1PyPy 2 0.820.8276,3201579  0% 100% 0% 0%
1.1PyPy 2 0.820.8276,5201579  1% 100% 0% 2%
1.1PyPy 3 #2 0.830.8369,0081443  0% 100% 1% 0%
1.1PyPy 3 #2 0.830.8469,0241443  0% 1% 0% 100%
1.1PyPy 3 #2 0.840.8469,3321443  96% 0% 0% 2%
1.1PyPy 3 0.860.8768,6241540  0% 100% 0% 0%
1.1PyPy 3 0.870.8768,6321540  1% 0% 100% 0%
1.1PyPy 3 0.880.8868,4961540  3% 97% 1% 1%
2.2Pyston #2 1.741.7430,1561485  0% 0% 99% 0%
2.2Pyston #2 1.741.7428,0161485  100% 0% 1% 0%
2.2Pyston #2 1.741.7429,9721485  3% 98% 0% 0%
2.5PyPy 2 #3 1.981.9874,6641354  100% 0% 0% 0%
2.5PyPy 2 #3 1.981.9874,4881354  98% 1% 2% 1%
2.6PyPy 2 #3 1.991.9974,2481354  1% 0% 100% 0%
2.6PyPy 3 #3 2.012.0168,0481334  0% 0% 100% 0%
2.6PyPy 3 #3 2.012.0168,0401334  0% 0% 1% 99%
2.6PyPy 3 #3 2.012.0167,9841334  1% 0% 100% 0%
2.6Pyston 2.052.0530,0601579  0% 100% 0% 0%
2.6Pyston 2.052.0530,0041579  100% 0% 0% 0%
2.6Pyston 2.062.0630,0121579  0% 0% 2% 98%
3.1Nuitka #2 2.412.4110,9561443  0% 100% 0% 0%
3.1Nuitka #2 2.432.4310,6881443  0% 0% 100% 0%
3.2Nuitka #2 2.472.4710,9921443  0% 0% 100% 0%
3.4Python 2 #2 2.652.656,9361485  100% 1% 1% 1%
3.4Python 2 #2 2.652.656,8681485  0% 84% 0% 16%
3.4Python 2 #2 2.682.686,9641485  0% 50% 0% 50%
3.6Nuitka 2.812.8111,0321540  0% 0% 100% 0%
3.7Nuitka 2.862.8610,8801540  100% 0% 0% 0%
3.7Nuitka 2.902.9110,9521540  0% 0% 0% 100%
4.4Python 3 #2 3.413.419,2641443  100% 0% 0% 0%
4.4Python 3 #2 3.433.439,3121443  0% 1% 99% 1%
4.4Python 3 #2 3.443.449,2641443  0% 50% 0% 50%
4.5Cython #3 3.483.4811,3961334  0% 0% 0% 100%
4.5Cython #3 3.493.4911,4441334  1% 74% 0% 27%
4.7Cython #3 3.683.6811,4201334  0% 0% 100% 0%
4.9Python 2 3.813.827,0401579  0% 0% 0% 100%
4.9Python 2 3.813.827,0761579  0% 100% 0% 0%
4.9Python 2 3.823.827,0201579  0% 100% 1% 0%
5.0Python development version #2 3.893.898,1841443  0% 99% 0% 1%
5.0Python development version #2 3.923.928,2881443  0% 100% 0% 0%
5.1Nuitka #3 3.943.9413,0801334  0% 87% 0% 14%
5.1Python development version #2 3.953.958,0921443  0% 100% 0% 0%
5.1Nuitka #3 4.004.0013,0361334  0% 0% 100% 0%
5.2Nuitka #3 4.084.0812,9681334  0% 0% 100% 0%
5.4Pyston #3 4.234.2330,4481354  0% 0% 0% 100%
5.4Pyston #3 4.234.2330,3201354  1% 99% 0% 0%
5.4Pyston #3 4.234.2330,2761354  0% 0% 100% 0%
5.5Python 2 #3 4.284.287,6641354  100% 0% 0% 0%
5.5Python 2 #3 4.304.307,6681354  0% 100% 0% 0%
5.6Python 2 #3 4.324.327,7801354  1% 0% 100% 0%
5.8Python 3 #3 4.524.5211,3881334  100% 0% 0% 0%
5.9Python 3 #3 4.554.5611,2721334  0% 65% 0% 36%
5.9Python 3 4.564.569,2881540  0% 0% 100% 0%
5.9Python 3 #3 4.584.5811,5281334  0% 0% 100% 0%
5.9Python 3 4.594.599,0921540  0% 100% 0% 0%
5.9Python 3 4.624.629,3361540  0% 48% 0% 52%
6.3Python development version #3 4.904.9110,0521334  100% 0% 0% 0%
6.3Python development version #3 4.914.919,7961334  0% 0% 100% 0%
6.3Python development version #3 4.934.939,7921334  0% 1% 100% 0%
6.7Python development version 5.235.237,7961540  1% 100% 0% 0%
6.8Python development version 5.285.287,5121540  0% 0% 100% 0%
7.0Python development version 5.465.467,5881540  1% 0% 100% 0%
9.5Jython #2 12.517.41307,5761485  25% 40% 49% 55%
9.7Jython #2 12.667.55311,7961485  42% 41% 36% 48%
9.9Jython #3 12.957.69303,3281354  35% 62% 34% 37%
9.9Jython #2 13.337.70319,3601485  51% 40% 36% 46%
10Jython #3 13.537.82308,0281354  33% 48% 64% 28%
11Jython #3 13.558.20314,7721354  47% 29% 60% 29%
12Jython 15.039.07312,0961579  61% 33% 39% 33%
12Jython 15.389.08309,5681579  34% 46% 39% 51%
12Jython 15.239.16315,1881579  28% 47% 49% 43%
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