Haxe Alloc Benchmark

var count:Int = 500000;

allocBytes(count, 100);
allocBytes(count, 1000);
allocBytes(count, 101);
allocBytes(count, 1001);
allocBytes(count, 102);

function allocBytes(count:Int, size:Int) {
    var data:Array<Bytes> = [];
    for (i in 0...count) {
        var bytes:Bytes = Bytes.alloc(size);
        bytes.fill(0, size, i);
        data.push(bytes);
    }
    for (i in 0...count) {
        var bytes:Bytes = Bytes.alloc(size);
        bytes.fill(0, size, i);
        bytes.compare(data[i]);
    }
}
Datasets



Average



Range


Targets


















Time Selection


Haxe 4 issues: unknown
Haxe nightly issues: unknown
date what
2024-08-07 16:30:00 switched to Haxe 4.3.6
2024-07-18 22:30:00 switched to Haxe 4.3.5
2024-03-04 22:30:00 switched to Haxe 4.3.4
2023-11-17 22:00:00 switched to Haxe 4.3.3
2023-09-03 21:30:00 switched to Haxe 4.3.2
2023-04-29 19:30:00 switched to Haxe 4.3.1
2023-04-07 16:00:00 switched from Haxe 4.2.5 to Haxe 4.3.0
2023-01-29 18:30:00 upgraded to Hashlink 1.13
2022-04-28 20:00:00 upgraded to Hashlink 1.12
2022-03-12 23:00:00 upgraded to Haxe 4.2.5
2021-12-24 02:00:00 upgraded to Haxe 4.2.4
2021-12-24 22:30:00 upgraded to Ubuntu 20.04
2021-07-01 18:30:00 upgraded to Haxe 4.2.3
2021-05-20 01:30:00 upgraded to Haxe 4.2.2
2021-03-30 11:00:00 upgraded to Haxe 4.2.1
2021-01-01 11:00:00 upgraded to Haxe 4.1.5
2020-06-19 21:30:00 upgraded Haxe 4.1.1 to Haxe 4.1.2
2020-06-12 18:00:00 disabled Haxe 3 runs
2020-05-23 00:00:00 upgraded Haxe 4.1.0 to Haxe 4.1.1
2020-05-22 22:00:00 added luajit
downgraded lua 5.2 to lua 5.1
2020-05-17 21:00:00 using github version of hxnodejs
2020-05-16 00:00:00 upgraded hxnodejs 10.0.0 to 12.0.0
2020-05-13 16:00:00 upgraded Haxe 4.0.5 to Haxe 4.1.0
2020-05-08 18:00:00 added `rm -rf out` to clean ouput folders in between versions => increased compile times for C++
2020-05-06 02:00:00 switched SHA256, SHA512 and BCrypt benchmarks to benchmark-runner
2020-05-05 12:00:00 switched to benchmark-runner (all except SHA256, SHA512 and BCrypt benchmarks) - increased values due to including process launch time of testee
2020-04-25 18:00:00 upgraded PHP 7.3.15-3 to PHP 7.3.17-1
upgraded Node v10.19.0 to Node v10.20.1
2020-04-25 14:00:00 added Cppia and Lua
2020-03-30 14:00:00 upgraded HL 1.10 to 1.11
2020-03-17 14:00:00 switched to hxcpp github
2020-03-15 15:00:00 added C++ (GC Gen) run
2020-03-01 03:00:00 upgraded PHP 7.3.13-1 to PHP 7.3.15-3
upgrade Node v10.18.1 to Node v10.19.0
2020-01-20 00:00:00 upgraded to Haxe 4.0.5
upgrade to lix 15.8.5
2019-11-29 22:00:00 upgraded to Haxe 4.0.3
2019-11-11 18:00:00 upgraded Haxe 4.0.1 to Haxe 4.0.2