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 9 462 22 21 24.11 1.16
bin-true no-host 661 531 2,269 802 797 3.43 1.21
configure.cpython no-host 14,653 14,734 28,337 14,949 14,933 1.93 1.02
configure.ocaml no-host 3,828 3,692 4,596 3,788 3,770 1.20 0.99
configure.tcc no-host 47 41 192 49 47 4.11 1.04
configure.util-linux no-host 13,654 14,470 30,824 14,055 14,037 2.26 1.03
configure.yash no-host 1,803 1,753 2,441 1,790 1,799 1.35 0.99
hello-world no-host 1 1 50 3 3 38.50 2.16

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,562 1,106 23,270 3,221 3,105 9.08 1.26
bin-true no-host 107,352 66,401 757,417 124,190 125,075 7.06 1.16
configure.cpython no-host 2,005,621 2,025,242 5,955,974 2,019,439 2,003,062 2.97 1.01
configure.ocaml no-host 372,984 353,710 606,950 376,147 375,642 1.63 1.01
configure.tcc no-host 6,083 4,996 22,958 6,528 6,484 3.77 1.07
configure.util-linux no-host 1,904,001 2,067,285 5,131,486 1,813,814 1,813,765 2.70 0.95
configure.yash no-host 233,278 222,226 361,816 234,476 235,520 1.55 1.01
hello-world no-host 146 81 3,720 352 343 25.48 2.41

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.5 3.3 21.5 9.0 8.7 4.82 2.03
bin-true no-host 2.9 1.6 17.6 7.9 7.6 6.09 2.73
configure.cpython no-host 29.3 29.1 29.2 29.3 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.4 22.6 22.6 0.99 1.00
configure.tcc no-host 19.8 19.5 19.6 19.5 19.7 0.99 0.99
configure.util-linux no-host 30.3 30.3 30.5 30.2 30.3 1.00 1.00
configure.yash no-host 26.4 26.3 26.4 26.4 26.3 1.00 1.00
hello-world no-host 2.9 1.4 17.6 6.2 5.8 6.09 2.14

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.2 3,711 3,711 0 691 1,833 1,187 2 0 50,000 0
bin-true no-host 802 1 2 2.6 7.9 154,676 13,060 2,812 9,741 78,302 66,633 3,008 3 50,000 0
configure.cpython no-host 14,949 1 66 14.9 29.3 1,772,658 49,102 28,522 86,394 908,054 778,210 22,694 60 50,000 0
configure.util-linux no-host 14,055 3 64 21.3 30.2 2,703,394 42,739 65,826 109,656 1,320,552 1,273,186 27,391 41 131,652 1
configure.ocaml no-host 3,788 1 2 2.6 22.6 150,028 10,987 5,157 7,526 71,590 70,912 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.5 30,517 30,517 0 1,517 14,757 14,243 226 0 50,000 0
configure.yash no-host 1,790 1 2 2.6 26.4 139,685 7,955 6,614 6,333 70,262 63,090 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,260 64,465 42,675 4,568 54,502 57,190 270 3 85,350 1
hello-world no-host 3 0 0 0.2 5.8 3,710 3,710 0 692 1,833 1,185 2 0 50,000 0
bin-true no-host 797 1 2 2.6 7.6 154,675 12,775 2,750 9,742 78,302 66,631 3,008 3 50,000 0
configure.cpython no-host 14,933 1 66 15.0 29.1 1,772,657 44,554 28,460 86,395 908,054 778,208 22,694 60 50,000 0
configure.util-linux no-host 14,037 3 65 21.3 30.3 2,703,394 44,640 65,763 109,658 1,320,552 1,273,184 27,391 41 131,526 1
configure.ocaml no-host 3,770 1 2 2.6 22.6 150,028 10,924 5,094 7,528 71,590 70,910 1,448 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,517 30,517 0 1,519 14,757 14,241 226 0 50,000 0
configure.yash no-host 1,799 1 2 2.6 26.3 139,685 7,893 6,552 6,335 70,262 63,088 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,259 64,403 42,613 4,569 54,502 57,188 270 3 85,226 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 9 11 4.5 bash
15 no-host abuild-print-help 9 5 5 3.3 dash
23 no-host abuild-print-help 462 414 52 21.5 osh-cpython
31 no-host abuild-print-help 22 11 12 9.0 osh-native
39 no-host abuild-print-help 21 11 10 8.7 osh-native-souffle
1 no-host bin-true 661 296 397 2.9 bash
9 no-host bin-true 531 275 268 1.6 dash
17 no-host bin-true 2,269 784 1,750 17.6 osh-cpython
25 no-host bin-true 802 303 512 7.9 osh-native
33 no-host bin-true 797 294 518 7.6 osh-native-souffle
2 no-host configure.cpython 14,653 6,699 8,370 29.3 bash
10 no-host configure.cpython 14,734 6,636 8,532 29.1 dash
18 no-host configure.cpython 28,337 14,241 16,003 29.2 osh-cpython
26 no-host configure.cpython 14,949 6,482 8,741 29.3 osh-native
34 no-host configure.cpython 14,933 6,457 8,675 29.1 osh-native-souffle
4 no-host configure.ocaml 3,828 1,333 1,527 22.6 bash
12 no-host configure.ocaml 3,692 1,291 1,423 22.6 dash
20 no-host configure.ocaml 4,596 1,860 1,944 22.4 osh-cpython
28 no-host configure.ocaml 3,788 1,324 1,506 22.6 osh-native
36 no-host configure.ocaml 3,770 1,266 1,546 22.6 osh-native-souffle
5 no-host configure.tcc 47 22 25 19.8 bash
13 no-host configure.tcc 41 23 19 19.5 dash
21 no-host configure.tcc 192 127 69 19.6 osh-cpython
29 no-host configure.tcc 49 21 28 19.5 osh-native
37 no-host configure.tcc 47 23 25 19.7 osh-native-souffle
3 no-host configure.util-linux 13,654 5,906 8,249 30.3 bash
11 no-host configure.util-linux 14,470 5,971 9,025 30.3 dash
19 no-host configure.util-linux 30,824 17,537 14,384 30.5 osh-cpython
27 no-host configure.util-linux 14,055 5,657 8,622 30.2 osh-native
35 no-host configure.util-linux 14,037 5,608 8,630 30.3 osh-native-souffle
6 no-host configure.yash 1,803 866 948 26.4 bash
14 no-host configure.yash 1,753 891 867 26.3 dash
22 no-host configure.yash 2,441 1,331 1,153 26.4 osh-cpython
30 no-host configure.yash 1,790 896 899 26.4 osh-native
38 no-host configure.yash 1,799 919 885 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 50 28 22 17.6 osh-cpython
24 no-host hello-world 3 1 2 6.2 osh-native
32 no-host hello-world 3 2 1 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,562 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,270 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,221 0 0 0 16 0 39 5 osh-native
39 no-host abuild-print-help 3,105 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 107,352 0 0 0 8 0 1,975 95 bash
9 no-host bin-true 66,401 0 0 0 8 0 1,974 86 dash
17 no-host bin-true 757,417 0 0 0 8 0 1,987 359 osh-cpython
25 no-host bin-true 124,190 0 0 0 16 0 1,981 339 osh-native
33 no-host bin-true 125,075 0 0 0 16 0 1,986 185 osh-native-souffle
2 no-host configure.cpython 2,005,621 0 0 0 32,928 0 14,230 1,194 bash
10 no-host configure.cpython 2,025,242 0 0 0 32,992 0 14,351 1,400 dash
18 no-host configure.cpython 5,955,974 0 0 0 27,512 0 13,030 1,317 osh-cpython
26 no-host configure.cpython 2,019,439 0 0 0 27,520 0 13,142 1,291 osh-native
34 no-host configure.cpython 2,003,062 0 0 0 27,520 0 13,114 1,232 osh-native-souffle
4 no-host configure.ocaml 372,984 0 0 0 5,120 0 1,953 320 bash
12 no-host configure.ocaml 353,710 0 0 0 5,112 0 1,939 183 dash
20 no-host configure.ocaml 606,950 0 0 0 5,112 0 1,855 183 osh-cpython
28 no-host configure.ocaml 376,147 0 0 0 5,120 0 1,920 209 osh-native
36 no-host configure.ocaml 375,642 0 0 0 5,120 0 1,924 198 osh-native-souffle
5 no-host configure.tcc 6,083 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 4,996 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 22,958 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,528 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,484 0 0 0 104 0 47 6 osh-native-souffle
3 no-host configure.util-linux 1,904,001 0 0 0 42,400 0 18,496 1,265 bash
11 no-host configure.util-linux 2,067,285 1 0 0 42,584 0 17,341 1,461 dash
19 no-host configure.util-linux 5,131,486 5 0 0 39,112 0 17,004 1,403 osh-cpython
27 no-host configure.util-linux 1,813,814 0 0 0 39,120 0 17,015 1,209 osh-native
35 no-host configure.util-linux 1,813,765 1 0 0 39,128 0 17,000 1,289 osh-native-souffle
6 no-host configure.yash 233,278 0 0 0 4,120 0 867 94 bash
14 no-host configure.yash 222,226 0 0 0 3,720 0 865 71 dash
22 no-host configure.yash 361,816 0 0 0 3,728 0 852 90 osh-cpython
30 no-host configure.yash 234,476 0 0 0 3,736 0 849 90 osh-native
38 no-host configure.yash 235,520 0 0 0 3,736 0 850 112 osh-native-souffle
0 no-host hello-world 146 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,720 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ec886f43
dash dash-0ebcf347
osh-cpython osh-b9572f73
osh-native osh-bfdeb685
osh-native-souffle osh-7c0cb0d5
host label host id
no-host no-host-e5b8d3ee