20240219

$ git clone https://github.com/quickjs-ng/quickjs $ cd quickjs $ make $ $./build/qjs tests/microbench.js TEST N TIME (ns) REF (ns) SCORE (%) empty_loop 500000 9.20 date_now 100000 37.00 prop_read 100000 7.28 prop_write 100000 5.73 prop_create 10000 69.25 prop_delete 50000 71.60 array_read 50000 8.62 array_write 20000 17.19 array_prop_create 100 26.30 array_length_decr 200 12.39 array_hole_length_decr 200 19.25 array_push 100 45.00 array_pop 100 66.40 typed_array_read 50000 8.36 typed_array_write 20000 17.20 global_read 200000 3.98 global_write 100000 9.20 global_write_strict 200000 3.90 local_destruct 1000 182.83 global_destruct 5000 63.20 global_destruct_strict 2000 170.00 func_call 50000 18.04 closure_var 50000 18.44 int_arith 200 10.00 float_arith 200 12.50 set_collection_add 100 252.50 array_for 2000 10.35 array_for_in 500 93.72 array_for_of 2000 17.61 math_min 100 34.20 regexp_ascii 1 669.80 regexp_utf16 1 677.40 string_build1 200 82.80 string_build2 200 85.20 sort_bench 1 1.55 int_to_string 50000 73.00 float_to_string 5000 570.00 string_to_int 50000 42.70 string_to_float 50000 55.40 bigint64_arith 10 316.00 bigint256_arith 10 306.00 total 4201.09 $

February 19, 2024 · 1 min · un01s