Skip to content

Instantly share code, notes, and snippets.

@intsuc
Last active May 18, 2023 12:16
Show Gist options
  • Save intsuc/097ee48b50e5ca349da8323967d849a1 to your computer and use it in GitHub Desktop.
Save intsuc/097ee48b50e5ca349da8323967d849a1 to your computer and use it in GitHub Desktop.

1.20-pre1 vs 1.20-pre2

benchmark 1.20-pre1 1.20-pre2
baseline 263.479460184556 ± 55.44590623221055 [ns/op] 262.6772200457718 ± 55.05785493224197 [ns/op]
data_get_byte 433.98316762350913 ± 7.444825260824145 [ns/op] 391.87628185594724 ± 18.936628742014072 [ns/op]
data_get_byte_1 740.4393732769925 ± 20.93953249166631 [ns/op] 456.17101920010447 ± 8.630503299692144 [ns/op]
data_get_int 412.08435852317024 ± 4.056129450233465 [ns/op] 374.34500487014526 ± 2.435684193080521 [ns/op]
data_get_int_1 737.7503310023358 ± 13.85836437954026 [ns/op] 423.18244626398047 ± 1.329924149473285 [ns/op]
data_get_list_0 406.8077717359254 ± 13.273700931499596 [ns/op] 380.8705782109833 ± 18.39461975718555 [ns/op]
data_get_list_10 815.2367801633818 ± 23.03435710248363 [ns/op] 389.33021614430356 ± 2.5096709510105066 [ns/op]
data_get_list_100 4596.622818755069 ± 405.8890940465109 [ns/op] 415.32740232703543 ± 4.27978906280323 [ns/op]
data_get_string_0 443.74775949687756 ± 6.068752822622106 [ns/op] 432.5183664340626 ± 3.530894224710298 [ns/op]
data_get_string_10 534.4688929819094 ± 2.5901830723483754 [ns/op] 386.5893753775165 ± 4.748285099137614 [ns/op]
data_get_string_100 829.6397242324371 ± 6.473544731663625 [ns/op] 391.98413212705253 ± 4.429220376050755 [ns/op]
data_merge 1542.146764429017 ± 8.576376836992278 [ns/op] 1652.944951522326 ± 9.508896426123204 [ns/op]
execute_unless_score 436.4210525347444 ± 27.423523433370377 [ns/op] 405.7728260222931 ± 7.698640771609633 [ns/op]
function_multiple 453.1432496615195 ± 102.70600348177418 [ns/op] 448.98323849088354 ± 60.29024155829339 [ns/op]
function_single 364.3623094452405 ± 4.106982390459058 [ns/op] 382.9511178355918 ± 7.22431759086925 [ns/op]
scoreboard_players_get 394.0082449094316 ± 20.759367239531766 [ns/op] 401.29314031450633 ± 12.13580340282344 [ns/op]
seed 314.80641091872417 ± 10.875504550219448 [ns/op] 331.4058302500689 ± 2.414886829116152 [ns/op]

a

data get storage _ byte
data get storage _ byte 1
data get storage _ int
data get storage _ int 1
data get storage _ list_0
data get storage _ list_10
data get storage _ list_100
data get storage _ string_0
data get storage _ string_10
data get storage _ string_100
data merge storage _ {_: 0}
data merge storage _ {_: 1}
execute unless score _ _ matches 1..
function #function_multiple
{
"mch_version": "0.9.1",
"forks": 1,
"jvm": "C:\\graalvm-ee-java19-22.3.1\\bin\\java.exe",
"jvm_args": [
"-Xms2G",
"-Xmx2G"
],
"jdk_version": "19.0.2",
"vm_name": "Java HotSpot(TM) 64-Bit Server VM",
"vm_version": "19.0.2+7-jvmci-22.3-b11",
"mc": "server.jar",
"mc_args": [
"nogui"
],
"warmup_iterations": 5,
"warmup_time": "5 s",
"measurement_iterations": 5,
"measurement_time": "5 s",
"results": [
{
"benchmark": "baseline",
"mode": "execute",
"count": 5,
"score": 263.479460184556,
"error": 55.44590623221055,
"unit": "ns/op"
},
{
"benchmark": "data_get_byte",
"mode": "execute",
"count": 5,
"score": 433.98316762350913,
"error": 7.444825260824145,
"unit": "ns/op"
},
{
"benchmark": "data_get_byte_1",
"mode": "execute",
"count": 5,
"score": 740.4393732769925,
"error": 20.93953249166631,
"unit": "ns/op"
},
{
"benchmark": "data_get_int",
"mode": "execute",
"count": 5,
"score": 412.08435852317024,
"error": 4.056129450233465,
"unit": "ns/op"
},
{
"benchmark": "data_get_int_1",
"mode": "execute",
"count": 5,
"score": 737.7503310023358,
"error": 13.85836437954026,
"unit": "ns/op"
},
{
"benchmark": "data_get_list_0",
"mode": "execute",
"count": 5,
"score": 406.8077717359254,
"error": 13.273700931499596,
"unit": "ns/op"
},
{
"benchmark": "data_get_list_10",
"mode": "execute",
"count": 5,
"score": 815.2367801633818,
"error": 23.03435710248363,
"unit": "ns/op"
},
{
"benchmark": "data_get_list_100",
"mode": "execute",
"count": 5,
"score": 4596.622818755069,
"error": 405.8890940465109,
"unit": "ns/op"
},
{
"benchmark": "data_get_string_0",
"mode": "execute",
"count": 5,
"score": 443.74775949687756,
"error": 6.068752822622106,
"unit": "ns/op"
},
{
"benchmark": "data_get_string_10",
"mode": "execute",
"count": 5,
"score": 534.4688929819094,
"error": 2.5901830723483754,
"unit": "ns/op"
},
{
"benchmark": "data_get_string_100",
"mode": "execute",
"count": 5,
"score": 829.6397242324371,
"error": 6.473544731663625,
"unit": "ns/op"
},
{
"benchmark": "data_merge",
"mode": "execute",
"count": 5,
"score": 1542.146764429017,
"error": 8.576376836992278,
"unit": "ns/op"
},
{
"benchmark": "execute_unless_score",
"mode": "execute",
"count": 5,
"score": 436.4210525347444,
"error": 27.423523433370377,
"unit": "ns/op"
},
{
"benchmark": "function_multiple",
"mode": "execute",
"count": 5,
"score": 453.1432496615195,
"error": 102.70600348177418,
"unit": "ns/op"
},
{
"benchmark": "function_single",
"mode": "execute",
"count": 5,
"score": 364.3623094452405,
"error": 4.106982390459058,
"unit": "ns/op"
},
{
"benchmark": "scoreboard_players_get",
"mode": "execute",
"count": 5,
"score": 394.0082449094316,
"error": 20.759367239531766,
"unit": "ns/op"
},
{
"benchmark": "seed",
"mode": "execute",
"count": 5,
"score": 314.80641091872417,
"error": 10.875504550219448,
"unit": "ns/op"
}
]
}
{
"mch_version": "0.9.1",
"forks": 1,
"jvm": "C:\\graalvm-ee-java19-22.3.1\\bin\\java.exe",
"jvm_args": [
"-Xms2G",
"-Xmx2G"
],
"jdk_version": "19.0.2",
"vm_name": "Java HotSpot(TM) 64-Bit Server VM",
"vm_version": "19.0.2+7-jvmci-22.3-b11",
"mc": "server.jar",
"mc_args": [
"nogui"
],
"warmup_iterations": 5,
"warmup_time": "5 s",
"measurement_iterations": 5,
"measurement_time": "5 s",
"results": [
{
"benchmark": "baseline",
"mode": "execute",
"count": 5,
"score": 262.6772200457718,
"error": 55.05785493224197,
"unit": "ns/op"
},
{
"benchmark": "data_get_byte",
"mode": "execute",
"count": 5,
"score": 391.87628185594724,
"error": 18.936628742014072,
"unit": "ns/op"
},
{
"benchmark": "data_get_byte_1",
"mode": "execute",
"count": 5,
"score": 456.17101920010447,
"error": 8.630503299692144,
"unit": "ns/op"
},
{
"benchmark": "data_get_int",
"mode": "execute",
"count": 5,
"score": 374.34500487014526,
"error": 2.435684193080521,
"unit": "ns/op"
},
{
"benchmark": "data_get_int_1",
"mode": "execute",
"count": 5,
"score": 423.18244626398047,
"error": 1.329924149473285,
"unit": "ns/op"
},
{
"benchmark": "data_get_list_0",
"mode": "execute",
"count": 5,
"score": 380.8705782109833,
"error": 18.39461975718555,
"unit": "ns/op"
},
{
"benchmark": "data_get_list_10",
"mode": "execute",
"count": 5,
"score": 389.33021614430356,
"error": 2.5096709510105066,
"unit": "ns/op"
},
{
"benchmark": "data_get_list_100",
"mode": "execute",
"count": 5,
"score": 415.32740232703543,
"error": 4.27978906280323,
"unit": "ns/op"
},
{
"benchmark": "data_get_string_0",
"mode": "execute",
"count": 5,
"score": 432.5183664340626,
"error": 3.530894224710298,
"unit": "ns/op"
},
{
"benchmark": "data_get_string_10",
"mode": "execute",
"count": 5,
"score": 386.5893753775165,
"error": 4.748285099137614,
"unit": "ns/op"
},
{
"benchmark": "data_get_string_100",
"mode": "execute",
"count": 5,
"score": 391.98413212705253,
"error": 4.429220376050755,
"unit": "ns/op"
},
{
"benchmark": "data_merge",
"mode": "execute",
"count": 5,
"score": 1652.944951522326,
"error": 9.508896426123204,
"unit": "ns/op"
},
{
"benchmark": "execute_unless_score",
"mode": "execute",
"count": 5,
"score": 405.7728260222931,
"error": 7.698640771609633,
"unit": "ns/op"
},
{
"benchmark": "function_multiple",
"mode": "execute",
"count": 5,
"score": 448.98323849088354,
"error": 60.29024155829339,
"unit": "ns/op"
},
{
"benchmark": "function_single",
"mode": "execute",
"count": 5,
"score": 382.9511178355918,
"error": 7.22431759086925,
"unit": "ns/op"
},
{
"benchmark": "scoreboard_players_get",
"mode": "execute",
"count": 5,
"score": 401.29314031450633,
"error": 12.13580340282344,
"unit": "ns/op"
},
{
"benchmark": "seed",
"mode": "execute",
"count": 5,
"score": 331.4058302500689,
"error": 2.414886829116152,
"unit": "ns/op"
}
]
}
data modify storage _ byte set value 0b
data modify storage _ int set value 0
data modify storage _ string_0 set value ""
data modify storage _ string_10 set value "!!!!!!!!!!"
data modify storage _ string_100 set value "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
data modify storage _ list_0 set value 0
data modify storage _ list_10 set value [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
data modify storage _ list_100 set value [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
scoreboard objectives add _ dummy
scoreboard players set _ _ 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment