OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 17 7 343 18 17 20.32 1.05
bin-true no-host 541 492 2,069 624 600 3.83 1.15
configure.cpython no-host 12,175 12,820 23,112 14,011 12,599 1.90 1.15
configure.ocaml no-host 3,643 3,462 3,813 4,528 4,260 1.05 1.24
configure.tcc no-host 48 39 152 53 52 3.15 1.10
configure.util-linux no-host 11,383 11,980 24,266 11,535 11,759 2.13 1.01
configure.yash no-host 1,581 1,344 1,858 2,074 2,222 1.17 1.31
hello-world no-host 1 1 53 2 2 46.06 1.84

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,557 1,092 23,628 3,199 3,173 9.24 1.25
bin-true no-host 106,332 66,442 761,378 130,912 129,872 7.16 1.23
configure.cpython no-host 2,222,053 2,238,842 6,232,427 2,232,088 2,233,137 2.80 1.00
configure.ocaml no-host 410,879 391,808 647,733 414,058 414,592 1.58 1.01
configure.tcc no-host 6,541 5,483 23,995 7,012 6,999 3.67 1.07
configure.util-linux no-host 2,096,988 2,261,991 5,381,935 2,015,777 2,015,836 2.57 0.96
configure.yash no-host 257,115 244,879 388,725 258,251 258,812 1.51 1.00
hello-world no-host 157 81 3,945 349 346 25.13 2.22

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.6 3.7 22.7 9.1 9.2 4.93 1.98
bin-true no-host 3.0 1.6 18.5 8.2 8.2 6.20 2.75
configure.cpython no-host 27.5 27.5 27.5 27.6 27.6 1.00 1.00
configure.ocaml no-host 20.7 20.7 20.7 20.7 20.8 1.00 1.00
configure.tcc no-host 19.5 19.5 19.6 19.5 19.6 1.00 1.00
configure.util-linux no-host 30.3 30.4 30.3 30.4 30.3 1.00 1.00
configure.yash no-host 24.5 24.6 24.6 24.6 24.5 1.00 1.00
hello-world no-host 3.0 1.6 18.4 6.3 6.3 6.09 2.10

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 2 0 0 0.2 6.3 3,792 3,792 0 694 1,867 1,231 2 0 50,000 0
bin-true no-host 624 0 2 2.6 8.2 153,756 12,330 2,895 8,743 78,336 66,677 3,008 3 50,000 0
configure.cpython no-host 14,011 2 60 14.9 27.6 1,771,757 49,613 28,520 85,415 908,088 778,254 25,733 60 50,000 0
configure.util-linux no-host 11,535 4 58 21.2 30.4 2,702,523 45,808 65,719 108,691 1,320,594 1,273,238 32,239 41 131,438 1
configure.ocaml no-host 4,528 1 2 2.6 20.7 150,090 11,120 5,215 7,508 71,621 70,961 1,695 3 50,000 0
configure.tcc no-host 53 0 0 1.3 19.5 30,596 30,596 0 1,518 14,791 14,287 271 0 50,000 0
configure.yash no-host 2,074 1 2 2.5 24.6 139,416 8,032 6,694 5,986 70,296 63,134 2,095 3 50,000 0
abuild-print-help no-host 18 0 1 2.8 9.1 116,302 64,411 42,621 4,531 54,536 57,235 277 3 85,242 1
hello-world no-host 2 0 0 0.2 6.3 3,791 3,791 0 695 1,867 1,229 2 0 50,000 0
bin-true no-host 600 0 1 2.6 8.2 153,755 12,330 2,895 8,744 78,336 66,675 3,008 3 50,000 0
configure.cpython no-host 12,599 2 54 14.9 27.6 1,771,756 49,613 28,520 85,416 908,088 778,252 25,733 60 50,000 0
configure.util-linux no-host 11,759 4 54 21.2 30.3 2,702,523 45,808 65,719 108,693 1,320,594 1,273,236 32,239 41 131,438 1
configure.ocaml no-host 4,260 1 2 2.6 20.8 150,090 11,120 5,215 7,510 71,621 70,959 1,695 3 50,000 0
configure.tcc no-host 52 0 0 1.3 19.6 30,596 30,596 0 1,520 14,791 14,285 271 0 50,000 0
configure.yash no-host 2,222 1 2 2.5 24.5 139,416 8,032 6,694 5,988 70,296 63,132 2,095 3 50,000 0
abuild-print-help no-host 17 0 1 2.8 9.2 116,301 64,411 42,621 4,532 54,536 57,233 277 3 85,242 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 17 16 1 4.6 bash
15 no-host abuild-print-help 7 4 3 3.7 dash
23 no-host abuild-print-help 343 311 34 22.7 osh-cpython
31 no-host abuild-print-help 18 16 2 9.1 osh-native
39 no-host abuild-print-help 17 13 5 9.2 osh-native-souffle
1 no-host bin-true 541 402 157 3.0 bash
9 no-host bin-true 492 376 116 1.6 dash
17 no-host bin-true 2,069 1,281 1,030 18.5 osh-cpython
25 no-host bin-true 624 445 187 8.2 osh-native
33 no-host bin-true 600 432 175 8.2 osh-native-souffle
2 no-host configure.cpython 12,175 7,911 4,596 27.5 bash
10 no-host configure.cpython 12,820 8,294 4,848 27.5 dash
18 no-host configure.cpython 23,112 14,571 10,115 27.5 osh-cpython
26 no-host configure.cpython 14,011 8,664 5,618 27.6 osh-native
34 no-host configure.cpython 12,599 7,935 4,902 27.6 osh-native-souffle
4 no-host configure.ocaml 3,643 1,631 1,048 20.7 bash
12 no-host configure.ocaml 3,462 1,497 979 20.7 dash
20 no-host configure.ocaml 3,813 1,801 1,159 20.7 osh-cpython
28 no-host configure.ocaml 4,528 2,011 1,571 20.7 osh-native
36 no-host configure.ocaml 4,260 1,944 1,368 20.8 osh-native-souffle
5 no-host configure.tcc 48 34 15 19.5 bash
13 no-host configure.tcc 39 22 17 19.5 dash
21 no-host configure.tcc 152 107 48 19.6 osh-cpython
29 no-host configure.tcc 53 33 20 19.5 osh-native
37 no-host configure.tcc 52 31 21 19.6 osh-native-souffle
3 no-host configure.util-linux 11,383 7,552 4,199 30.3 bash
11 no-host configure.util-linux 11,980 7,936 4,400 30.4 dash
19 no-host configure.util-linux 24,266 16,556 8,600 30.3 osh-cpython
27 no-host configure.util-linux 11,535 7,429 4,236 30.4 osh-native
35 no-host configure.util-linux 11,759 7,456 4,438 30.3 osh-native-souffle
6 no-host configure.yash 1,581 969 619 24.5 bash
14 no-host configure.yash 1,344 843 503 24.6 dash
22 no-host configure.yash 1,858 1,178 714 24.6 osh-cpython
30 no-host configure.yash 2,074 1,259 818 24.6 osh-native
38 no-host configure.yash 2,222 1,299 928 24.5 osh-native-souffle
0 no-host hello-world 1 1 0 3.0 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 53 38 15 18.4 osh-cpython
24 no-host hello-world 2 2 0 6.3 osh-native
32 no-host hello-world 2 2 0 6.3 osh-native-souffle

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,557 2 0 88 16 0 42 0 bash
15 no-host abuild-print-help 1,092 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,628 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,199 0 0 0 16 0 36 1 osh-native
39 no-host abuild-print-help 3,173 0 0 0 16 0 36 3 osh-native-souffle
1 no-host bin-true 106,332 2 0 72 8 0 2,003 50 bash
9 no-host bin-true 66,442 0 0 0 8 0 1,998 51 dash
17 no-host bin-true 761,378 0 0 0 8 0 2,005 181 osh-cpython
25 no-host bin-true 130,912 0 0 0 16 0 2,000 57 osh-native
33 no-host bin-true 129,872 0 0 0 16 0 2,000 50 osh-native-souffle
2 no-host configure.cpython 2,222,053 47 0 3,664 32,928 0 14,150 1,411 bash
10 no-host configure.cpython 2,238,842 0 0 0 32,992 0 14,585 1,833 dash
18 no-host configure.cpython 6,232,427 0 0 0 27,520 0 16,149 5,215 osh-cpython
26 no-host configure.cpython 2,232,088 0 0 0 27,520 0 13,366 1,405 osh-native
34 no-host configure.cpython 2,233,137 1 0 0 27,520 0 13,312 1,325 osh-native-souffle
4 no-host configure.ocaml 410,879 2 0 360 5,120 0 1,926 251 bash
12 no-host configure.ocaml 391,808 0 0 0 5,112 0 1,907 222 dash
20 no-host configure.ocaml 647,733 0 0 0 5,112 0 1,870 266 osh-cpython
28 no-host configure.ocaml 414,058 0 0 0 5,120 0 1,868 291 osh-native
36 no-host configure.ocaml 414,592 0 0 0 5,120 0 1,867 298 osh-native-souffle
5 no-host configure.tcc 6,541 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,995 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 7,012 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,999 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,096,988 22 0 9,232 42,400 0 20,501 3,750 bash
11 no-host configure.util-linux 2,261,991 1 0 0 42,584 0 21,642 5,990 dash
19 no-host configure.util-linux 5,381,935 1 0 0 39,120 0 17,018 1,864 osh-cpython
27 no-host configure.util-linux 2,015,777 0 0 0 39,128 0 17,085 1,211 osh-native
35 no-host configure.util-linux 2,015,836 0 0 0 39,136 0 17,019 1,203 osh-native-souffle
6 no-host configure.yash 257,115 3 0 472 4,120 0 867 78 bash
14 no-host configure.yash 244,879 0 0 0 3,720 0 869 82 dash
22 no-host configure.yash 388,725 0 0 0 3,728 0 855 89 osh-cpython
30 no-host configure.yash 258,251 0 0 0 3,736 0 850 100 osh-native
38 no-host configure.yash 258,812 0 0 0 3,744 0 849 92 osh-native-souffle
0 no-host hello-world 157 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,945 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 346 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-cf76e002
dash dash-0ebcf347
osh-cpython osh-1752931b
osh-native osh-9accd034
osh-native-souffle osh-6aec3f7d
host label host id
no-host no-host-360e10ed