From 7b6c1f7eaee24f87f1d7c3d1d48fbc99ebd553de Mon Sep 17 00:00:00 2001 From: github-action-benchmark Date: Mon, 2 Dec 2024 04:49:15 +0000 Subject: [PATCH] add Rust Benchmark (cargo) benchmark result for ae6e9d467a9739314ea7bcb17ca62355235479c6 --- dev/bench/data.js | 320 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 319 insertions(+), 1 deletion(-) diff --git a/dev/bench/data.js b/dev/bench/data.js index fac6b4211..5e00c8b70 100644 --- a/dev/bench/data.js +++ b/dev/bench/data.js @@ -1,5 +1,5 @@ window.BENCHMARK_DATA = { - "lastUpdate": 1728369832619, + "lastUpdate": 1733114955692, "repoUrl": "https://github.com/schungx/rhai", "entries": { "Rust Benchmark": [ @@ -79502,6 +79502,324 @@ window.BENCHMARK_DATA = { "unit": "ns/iter" } ] + }, + { + "commit": { + "author": { + "email": "schungx@live.com", + "name": "Stephen Chung", + "username": "schungx" + }, + "committer": { + "email": "schungx@live.com", + "name": "Stephen Chung", + "username": "schungx" + }, + "distinct": true, + "id": "ae6e9d467a9739314ea7bcb17ca62355235479c6", + "message": "Optimize string slice", + "timestamp": "2024-12-02T12:44:34+08:00", + "tree_id": "48c19beefcab347f99d13b225f3b8118657df202", + "url": "https://github.com/schungx/rhai/commit/ae6e9d467a9739314ea7bcb17ca62355235479c6" + }, + "date": 1733114950200, + "tool": "cargo", + "benches": [ + { + "name": "bench_engine_new", + "value": 367586.54, + "range": "± 6582.69", + "unit": "ns/iter" + }, + { + "name": "bench_engine_new_raw", + "value": 33.83, + "range": "± 0.82", + "unit": "ns/iter" + }, + { + "name": "bench_engine_new_raw_core", + "value": 104.45, + "range": "± 3.39", + "unit": "ns/iter" + }, + { + "name": "bench_engine_register_fn", + "value": 566.39, + "range": "± 12.17", + "unit": "ns/iter" + }, + { + "name": "bench_eval_array_large_get", + "value": 969.1, + "range": "± 21.95", + "unit": "ns/iter" + }, + { + "name": "bench_eval_array_large_set", + "value": 1061.16, + "range": "± 24.19", + "unit": "ns/iter" + }, + { + "name": "bench_eval_array_loop", + "value": 4413509.35, + "range": "± 71902.94", + "unit": "ns/iter" + }, + { + "name": "bench_eval_array_small_get", + "value": 387.85, + "range": "± 23.87", + "unit": "ns/iter" + }, + { + "name": "bench_eval_array_small_set", + "value": 394.82, + "range": "± 8.73", + "unit": "ns/iter" + }, + { + "name": "bench_eval_call", + "value": 10079.07, + "range": "± 195.29", + "unit": "ns/iter" + }, + { + "name": "bench_eval_call_expression", + "value": 8504.53, + "range": "± 240.89", + "unit": "ns/iter" + }, + { + "name": "bench_eval_deeply_nested", + "value": 10793.38, + "range": "± 113.18", + "unit": "ns/iter" + }, + { + "name": "bench_eval_expression_number_literal", + "value": 134.24, + "range": "± 3.29", + "unit": "ns/iter" + }, + { + "name": "bench_eval_expression_number_operators", + "value": 187.96, + "range": "± 3.67", + "unit": "ns/iter" + }, + { + "name": "bench_eval_expression_optimized_full", + "value": 83.36, + "range": "± 0.63", + "unit": "ns/iter" + }, + { + "name": "bench_eval_expression_optimized_simple", + "value": 83.61, + "range": "± 0.63", + "unit": "ns/iter" + }, + { + "name": "bench_eval_expression_single", + "value": 83.64, + "range": "± 0.55", + "unit": "ns/iter" + }, + { + "name": "bench_eval_loop_number", + "value": 1014026.7, + "range": "± 17548.73", + "unit": "ns/iter" + }, + { + "name": "bench_eval_loop_strings_build", + "value": 1831800.7, + "range": "± 67814.48", + "unit": "ns/iter" + }, + { + "name": "bench_eval_loop_strings_no_build", + "value": 1492221.8, + "range": "± 25626.78", + "unit": "ns/iter" + }, + { + "name": "bench_eval_nested_if", + "value": 10131.72, + "range": "± 178.68", + "unit": "ns/iter" + }, + { + "name": "bench_eval_switch", + "value": 4296.04, + "range": "± 51.55", + "unit": "ns/iter" + }, + { + "name": "bench_eval_map_large_get", + "value": 1287.28, + "range": "± 55.45", + "unit": "ns/iter" + }, + { + "name": "bench_eval_map_large_set", + "value": 1315.43, + "range": "± 34.65", + "unit": "ns/iter" + }, + { + "name": "bench_eval_map_small_get", + "value": 308.9, + "range": "± 14.61", + "unit": "ns/iter" + }, + { + "name": "bench_eval_map_small_set", + "value": 349.06, + "range": "± 16.59", + "unit": "ns/iter" + }, + { + "name": "bench_eval_function_call", + "value": 647.66, + "range": "± 17.12", + "unit": "ns/iter" + }, + { + "name": "bench_eval_module", + "value": 637.46, + "range": "± 20.47", + "unit": "ns/iter" + }, + { + "name": "bench_eval_scope_complex", + "value": 260.66, + "range": "± 9.23", + "unit": "ns/iter" + }, + { + "name": "bench_eval_scope_longer", + "value": 300.95, + "range": "± 9.15", + "unit": "ns/iter" + }, + { + "name": "bench_eval_scope_multiple", + "value": 183.24, + "range": "± 4.45", + "unit": "ns/iter" + }, + { + "name": "bench_eval_scope_single", + "value": 182.58, + "range": "± 6.99", + "unit": "ns/iter" + }, + { + "name": "bench_type_field", + "value": 222.48, + "range": "± 6.16", + "unit": "ns/iter" + }, + { + "name": "bench_type_method", + "value": 333.18, + "range": "± 7.15", + "unit": "ns/iter" + }, + { + "name": "bench_type_method_nested", + "value": 348.3, + "range": "± 2.39", + "unit": "ns/iter" + }, + { + "name": "bench_type_method_with_params", + "value": 377.93, + "range": "± 43.62", + "unit": "ns/iter" + }, + { + "name": "bench_iterations_1000", + "value": 173040.72, + "range": "± 9813.19", + "unit": "ns/iter" + }, + { + "name": "bench_iterations_array", + "value": 295164.88, + "range": "± 4382.97", + "unit": "ns/iter" + }, + { + "name": "bench_iterations_blob", + "value": 289339.33, + "range": "± 8100.26", + "unit": "ns/iter" + }, + { + "name": "bench_iterations_fibonacci", + "value": 11133710.5, + "range": "± 236714.65", + "unit": "ns/iter" + }, + { + "name": "bench_parse_array", + "value": 1919.28, + "range": "± 34.68", + "unit": "ns/iter" + }, + { + "name": "bench_parse_full", + "value": 8014.01, + "range": "± 72.53", + "unit": "ns/iter" + }, + { + "name": "bench_parse_map", + "value": 3150.63, + "range": "± 33.07", + "unit": "ns/iter" + }, + { + "name": "bench_parse_optimize_full", + "value": 10621.41, + "range": "± 166.79", + "unit": "ns/iter" + }, + { + "name": "bench_parse_optimize_simple", + "value": 9635.49, + "range": "± 206.82", + "unit": "ns/iter" + }, + { + "name": "bench_parse_primes", + "value": 21672.46, + "range": "± 800.10", + "unit": "ns/iter" + }, + { + "name": "bench_parse_simple", + "value": 1765.29, + "range": "± 24.79", + "unit": "ns/iter" + }, + { + "name": "bench_parse_single", + "value": 303.72, + "range": "± 12.82", + "unit": "ns/iter" + }, + { + "name": "bench_eval_primes", + "value": 964275.45, + "range": "± 7431.51", + "unit": "ns/iter" + } + ] } ] }