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.7428,0161485  100% 0% 1% 0%
2.0Pyston #2 1.741.7429,9721485  3% 98% 0% 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.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.702.7010,2081443  0% 1% 1% 100%
3.0Nuitka #2 2.712.7210,0801443  100% 2% 0% 1%
3.1Nuitka #2 2.762.7610,2641443  2% 100% 1% 1%
3.4Nuitka 3.043.0410,0841540  41% 1% 60% 1%
3.5Nuitka 3.103.1110,1681540  31% 1% 70% 1%
3.5Nuitka 3.113.1110,4601540  100% 0% 1% 1%
3.5Python development version #2 3.163.168,0961443  6% 1% 2% 100%
3.6Python development version #2 3.203.208,0801443  5% 1% 100% 1%
3.6Python development version #2 3.233.257,9241443  15% 1% 90% 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%
3.9Cython #3 3.513.5111,1601334  1% 100% 1% 1%
4.0Cython #3 3.533.5311,1761334  2% 1% 100% 2%
4.0Cython #3 3.553.5511,1241334  1% 1% 1% 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.094.1011,9601334  37% 1% 64% 1%
4.6Python development version 4.104.118,3121540  9% 8% 5% 100%
4.6Nuitka #3 4.114.1112,1321334  1% 0% 100% 1%
4.6Nuitka #3 4.124.1212,3441334  1% 100% 0% 1%
4.7Python development version 4.174.178,1361540  12% 8% 100% 9%
4.7Python development version 4.164.188,3001540  16% 0% 90% 1%
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 development version #3 4.314.3210,0721334  5% 1% 0% 100%
4.8Python 3 4.334.338,9121540  7% 2% 2% 100%
4.9Python development version #3 4.334.3310,3201334  6% 100% 1% 0%
4.9Python development version #3 4.334.3410,0481334  7% 1% 1% 100%
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 3 #3 4.804.9010,9601334  48% 11% 16% 52%
5.6Python 3 #3 4.984.9911,1121334  14% 13% 8% 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.158.35762,2801443  63% 28% 61% 67%
9.4Graal #2 17.098.42773,7281443  67% 17% 65% 68%
10Graal #2 18.398.91675,5841443  64% 75% 42% 33%
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%
12Graal 20.7910.41746,4401540  57% 57% 41% 51%
13Graal 22.2511.40717,5081540  34% 39% 62% 68%
13Graal 22.9811.68743,1841540  70% 63% 41% 30%
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