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 19 10 476 22 21 24.90 1.17
bin-true no-host 671 539 2,247 817 825 3.35 1.22
configure.cpython no-host 15,346 15,062 28,718 15,832 15,847 1.87 1.03
configure.ocaml no-host 3,800 3,737 4,754 3,936 3,894 1.25 1.04
configure.tcc no-host 49 41 200 51 49 4.10 1.05
configure.util-linux no-host 14,092 15,193 31,962 15,055 14,711 2.27 1.07
configure.yash no-host 1,808 1,753 2,568 1,889 1,862 1.42 1.04
hello-world no-host 2 1 49 3 3 30.75 1.98

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,535 1,119 23,393 3,203 3,087 9.23 1.26
bin-true no-host 104,338 66,434 760,731 125,116 127,816 7.29 1.20
configure.cpython no-host 2,225,955 2,251,822 6,208,963 2,228,485 2,224,884 2.79 1.00
configure.ocaml no-host 410,970 391,398 646,744 413,843 412,376 1.57 1.01
configure.tcc no-host 6,548 5,487 23,550 7,006 6,924 3.60 1.07
configure.util-linux no-host 2,104,480 2,261,127 5,352,452 1,994,584 1,996,883 2.54 0.95
configure.yash no-host 254,639 244,572 387,457 258,321 258,283 1.52 1.01
hello-world no-host 152 81 3,729 351 342 24.53 2.31

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.2 3.5 22.0 9.0 8.5 5.25 2.16
bin-true no-host 3.0 1.4 17.7 8.1 7.5 5.87 2.70
configure.cpython no-host 27.3 27.4 27.5 27.5 27.4 1.01 1.01
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.1 30.1 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 24.4 1.00 0.99
hello-world no-host 2.6 1.3 17.6 6.3 5.8 6.70 2.40

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 3 0 0 0.2 6.3 3,773 3,773 0 694 1,851 1,228 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.1 154,738 13,218 2,875 9,744 78,320 66,674 3,008 3 50,000 0
configure.cpython no-host 15,832 1 66 15.0 27.5 1,772,720 49,852 28,585 86,397 908,072 778,251 22,694 60 50,000 0
configure.util-linux no-host 15,055 3 64 21.3 30.3 2,703,488 42,056 65,868 109,675 1,320,578 1,273,235 27,391 41 131,736 1
configure.ocaml no-host 3,936 1 2 2.6 20.6 150,094 11,049 5,219 7,531 71,605 70,958 1,448 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,579 30,579 0 1,520 14,775 14,284 226 0 50,000 0
configure.yash no-host 1,889 1 2 2.6 24.2 139,747 8,018 6,677 6,336 70,280 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,322 64,528 42,738 4,571 54,520 57,231 270 3 85,476 1
hello-world no-host 3 0 0 0.2 5.8 3,772 3,772 0 695 1,851 1,226 2 0 50,000 0
bin-true no-host 825 1 2 2.6 7.5 154,737 13,061 2,813 9,745 78,320 66,672 3,008 3 50,000 0
configure.cpython no-host 15,847 1 64 14.9 27.4 1,772,719 49,103 28,523 86,398 908,072 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,711 3 63 21.3 30.3 2,703,488 44,166 65,806 109,677 1,320,578 1,273,233 27,391 41 131,612 1
configure.ocaml no-host 3,894 1 2 2.6 20.6 150,094 10,987 5,157 7,533 71,605 70,956 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,579 30,579 0 1,522 14,775 14,282 226 0 50,000 0
configure.yash no-host 1,862 1 2 2.6 24.4 139,747 7,956 6,615 6,338 70,280 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,321 64,466 42,676 4,572 54,520 57,229 270 3 85,352 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 19 12 8 4.2 bash
15 no-host abuild-print-help 10 4 6 3.5 dash
23 no-host abuild-print-help 476 415 64 22.0 osh-cpython
31 no-host abuild-print-help 22 18 5 9.0 osh-native
39 no-host abuild-print-help 21 11 10 8.5 osh-native-souffle
1 no-host bin-true 671 489 213 3.0 bash
9 no-host bin-true 539 414 135 1.4 dash
17 no-host bin-true 2,247 1,474 1,028 17.7 osh-cpython
25 no-host bin-true 817 582 251 8.1 osh-native
33 no-host bin-true 825 598 239 7.5 osh-native-souffle
2 no-host configure.cpython 15,346 9,236 6,517 27.3 bash
10 no-host configure.cpython 15,062 9,133 6,350 27.4 dash
18 no-host configure.cpython 28,718 17,356 13,204 27.5 osh-cpython
26 no-host configure.cpython 15,832 9,504 6,601 27.5 osh-native
34 no-host configure.cpython 15,847 9,255 6,768 27.4 osh-native-souffle
4 no-host configure.ocaml 3,800 1,691 1,145 20.6 bash
12 no-host configure.ocaml 3,737 1,604 1,154 20.6 dash
20 no-host configure.ocaml 4,754 2,379 1,588 20.6 osh-cpython
28 no-host configure.ocaml 3,936 1,700 1,268 20.6 osh-native
36 no-host configure.ocaml 3,894 1,718 1,212 20.6 osh-native-souffle
5 no-host configure.tcc 49 23 26 19.4 bash
13 no-host configure.tcc 41 27 14 19.3 dash
21 no-host configure.tcc 200 140 64 19.4 osh-cpython
29 no-host configure.tcc 51 29 23 19.3 osh-native
37 no-host configure.tcc 49 34 16 19.3 osh-native-souffle
3 no-host configure.util-linux 14,092 8,979 5,591 30.1 bash
11 no-host configure.util-linux 15,193 9,175 6,500 30.1 dash
19 no-host configure.util-linux 31,962 21,280 11,808 30.1 osh-cpython
27 no-host configure.util-linux 15,055 9,010 6,142 30.3 osh-native
35 no-host configure.util-linux 14,711 8,844 6,061 30.3 osh-native-souffle
6 no-host configure.yash 1,808 1,081 735 24.4 bash
14 no-host configure.yash 1,753 982 774 24.4 dash
22 no-host configure.yash 2,568 1,585 1,028 24.4 osh-cpython
30 no-host configure.yash 1,889 1,091 802 24.2 osh-native
38 no-host configure.yash 1,862 1,083 782 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.6 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 49 25 24 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 5.8 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,535 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,119 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,393 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,203 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,087 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,338 0 0 0 8 0 1,991 65 bash
9 no-host bin-true 66,434 0 0 0 8 0 1,983 36 dash
17 no-host bin-true 760,731 0 0 0 8 0 1,994 282 osh-cpython
25 no-host bin-true 125,116 0 0 0 16 0 1,992 126 osh-native
33 no-host bin-true 127,816 0 0 0 16 0 1,996 90 osh-native-souffle
2 no-host configure.cpython 2,225,955 0 0 0 32,928 0 14,436 1,296 bash
10 no-host configure.cpython 2,251,822 0 0 0 32,992 0 14,634 1,089 dash
18 no-host configure.cpython 6,208,963 0 0 0 27,512 0 13,198 1,136 osh-cpython
26 no-host configure.cpython 2,228,485 0 0 0 27,520 0 13,342 1,089 osh-native
34 no-host configure.cpython 2,224,884 0 0 0 27,520 0 13,220 1,047 osh-native-souffle
4 no-host configure.ocaml 410,970 0 0 0 5,120 0 1,946 169 bash
12 no-host configure.ocaml 391,398 0 0 0 5,112 0 1,928 129 dash
20 no-host configure.ocaml 646,744 0 0 0 5,112 0 1,853 175 osh-cpython
28 no-host configure.ocaml 413,843 0 0 0 5,120 0 1,928 365 osh-native
36 no-host configure.ocaml 412,376 0 0 0 5,120 0 1,932 155 osh-native-souffle
5 no-host configure.tcc 6,548 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,550 0 0 0 96 0 54 5 osh-cpython
29 no-host configure.tcc 7,006 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,924 0 0 0 104 0 47 9 osh-native-souffle
3 no-host configure.util-linux 2,104,480 0 0 0 42,400 0 18,582 1,043 bash
11 no-host configure.util-linux 2,261,127 2 0 0 42,592 0 17,422 1,056 dash
19 no-host configure.util-linux 5,352,452 10 0 0 39,112 0 16,902 1,332 osh-cpython
27 no-host configure.util-linux 1,994,584 1 0 0 39,120 0 17,017 1,073 osh-native
35 no-host configure.util-linux 1,996,883 0 0 0 39,136 0 16,948 1,077 osh-native-souffle
6 no-host configure.yash 254,639 0 0 0 4,120 0 870 81 bash
14 no-host configure.yash 244,572 0 0 0 3,720 0 866 87 dash
22 no-host configure.yash 387,457 0 0 0 3,728 0 852 110 osh-cpython
30 no-host configure.yash 258,321 0 0 0 3,736 0 847 75 osh-native
38 no-host configure.yash 258,283 0 0 0 3,736 0 850 96 osh-native-souffle
0 no-host hello-world 152 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,729 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 0 1 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-16f2aef9
dash dash-0ebcf347
osh-cpython osh-3539034e
osh-native osh-05e5a2c5
osh-native-souffle osh-b2bf85e2
host label host id
no-host no-host-556df3ee