summaryrefslogtreecommitdiff
path: root/bench/intsort.myr
blob: 008e6ba17889a433deff182537fdfa99959b3ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std

const main = {
	var a
	var i
	var rng

	rng = std.mksrng(123)
	a = std.slalloc(100_000)
	for i = 0; i < a.len; i++
		a[i] = std.rand32(rng)
	;;
	std.sort(a, std.numcmp)
}