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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 15 9 21 22 18 1.33 1.17
bin-true no-host 610 438 799 808 648 1.31 1.06
configure.cpython no-host 13,668 13,702 13,398 13,484 12,848 0.98 0.94
configure.ocaml no-host 3,631 3,579 3,671 3,676 3,705 1.01 1.02
configure.tcc no-host 45 41 46 47 43 1.02 0.95
configure.util-linux no-host 12,405 13,246 12,427 12,502 12,352 1.00 1.00
configure.yash no-host 1,703 1,651 1,677 1,693 1,654 0.98 0.97
hello-world no-host 1 1 3 3 1 2.44 1.01

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,402 1,158 3,283 3,437 2,846 1.37 1.18
bin-true no-host 102,496 49,449 132,020 134,323 111,729 1.29 1.09
configure.cpython no-host 1,623,973 1,631,052 1,584,110 1,611,395 1,517,439 0.98 0.93
configure.ocaml no-host 299,522 280,831 306,498 307,074 299,966 1.02 1.00
configure.tcc no-host 5,253 4,222 5,577 5,685 5,129 1.06 0.98
configure.util-linux no-host 1,535,292 1,704,995 1,523,947 1,514,989 1,477,662 0.99 0.96
configure.yash no-host 173,536 159,605 176,398 177,242 172,839 1.02 1.00
hello-world no-host 151 84 395 402 183 2.62 1.21

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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.8 3.9 9.4 10.1 6.3 1.95 1.30
bin-true no-host 3.3 1.6 8.9 8.9 5.2 2.72 1.60
configure.cpython no-host 34.4 34.5 34.5 34.6 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.5 28.6 28.5 28.7 1.00 1.00
configure.tcc no-host 26.3 26.3 26.1 26.3 26.0 0.99 0.99
configure.util-linux no-host 39.6 39.7 39.7 39.7 39.5 1.00 1.00
configure.yash no-host 33.3 33.3 33.2 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.6 7.1 3.3 2.08 1.04

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.3 6.6 3,915 3,915 0 723 1,921 1,271 2 0 50,000 0
bin-true no-host 799 1 2 3.5 8.9 151,900 10,763 2,977 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,398 1 68 14.8 34.5 1,750,827 35,398 28,953 93,078 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,427 3 66 21.6 39.7 2,705,393 37,470 66,341 119,746 1,291,872 1,293,775 32,527 42 132,682 1
configure.ocaml no-host 3,671 1 2 2.8 28.6 149,700 12,655 6,570 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,677 1 2 2.7 33.2 143,476 11,507 6,624 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,234 65,800 42,007 4,977 54,599 57,658 277 3 84,014 1
hello-world no-host 3 0 0 0.3 7.1 3,914 3,914 0 722 1,921 1,271 2 0 50,000 0
bin-true no-host 808 1 2 3.5 8.9 151,900 10,767 2,981 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,484 1 65 14.8 34.6 1,750,826 36,457 28,958 93,077 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,502 3 65 21.6 39.7 2,705,393 37,476 66,347 119,746 1,291,872 1,293,775 32,527 42 132,694 1
configure.ocaml no-host 3,676 1 2 2.8 28.5 149,700 12,660 6,575 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,693 1 2 2.7 33.4 143,476 11,511 6,628 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,234 65,804 42,011 4,977 54,599 57,658 277 3 84,022 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 15 7 9 4.8 bash
15 no-host abuild-print-help 9 2 7 3.9 dash
23 no-host abuild-print-help 21 8 13 9.4 osh-native
31 no-host abuild-print-help 22 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 8 11 6.3 osh-static
1 no-host bin-true 610 319 330 3.3 bash
9 no-host bin-true 438 276 167 1.6 dash
17 no-host bin-true 799 300 515 8.9 osh-native
25 no-host bin-true 808 296 527 8.9 osh-nosouffle
33 no-host bin-true 648 307 357 5.2 osh-static
2 no-host configure.cpython 13,668 7,508 6,543 34.4 bash
10 no-host configure.cpython 13,702 7,554 6,519 34.5 dash
18 no-host configure.cpython 13,398 7,212 6,452 34.5 osh-native
26 no-host configure.cpython 13,484 7,167 6,604 34.6 osh-nosouffle
34 no-host configure.cpython 12,848 7,076 6,005 34.4 osh-static
4 no-host configure.ocaml 3,631 1,502 1,169 28.7 bash
12 no-host configure.ocaml 3,579 1,433 1,169 28.5 dash
20 no-host configure.ocaml 3,671 1,473 1,237 28.6 osh-native
28 no-host configure.ocaml 3,676 1,452 1,265 28.5 osh-nosouffle
36 no-host configure.ocaml 3,705 1,481 1,255 28.7 osh-static
5 no-host configure.tcc 45 16 30 26.3 bash
13 no-host configure.tcc 41 21 20 26.3 dash
21 no-host configure.tcc 46 25 22 26.1 osh-native
29 no-host configure.tcc 47 28 20 26.3 osh-nosouffle
37 no-host configure.tcc 43 23 20 26.0 osh-static
3 no-host configure.util-linux 12,405 6,529 6,339 39.6 bash
11 no-host configure.util-linux 13,246 6,531 7,196 39.7 dash
19 no-host configure.util-linux 12,427 6,114 6,525 39.7 osh-native
27 no-host configure.util-linux 12,502 6,234 6,479 39.7 osh-nosouffle
35 no-host configure.util-linux 12,352 6,300 6,250 39.5 osh-static
6 no-host configure.yash 1,703 968 743 33.3 bash
14 no-host configure.yash 1,651 964 688 33.3 dash
22 no-host configure.yash 1,677 953 726 33.2 osh-native
30 no-host configure.yash 1,693 936 760 33.4 osh-nosouffle
38 no-host configure.yash 1,654 921 736 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 1 2 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 3.3 osh-static

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,402 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,283 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,437 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,846 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,496 0 0 0 8 0 2,001 55 bash
9 no-host bin-true 49,449 0 0 0 8 0 2,996 50 dash
17 no-host bin-true 132,020 0 0 0 16 0 2,001 94 osh-native
25 no-host bin-true 134,323 0 0 0 16 0 1,999 90 osh-nosouffle
33 no-host bin-true 111,729 0 0 0 8 0 1,999 69 osh-static
2 no-host configure.cpython 1,623,973 0 0 0 25,272 0 14,085 1,012 bash
10 no-host configure.cpython 1,631,052 0 0 0 25,272 0 14,145 1,029 dash
18 no-host configure.cpython 1,584,110 0 0 0 25,280 0 11,301 794 osh-native
26 no-host configure.cpython 1,611,395 0 0 0 25,280 0 11,307 867 osh-nosouffle
34 no-host configure.cpython 1,517,439 0 0 0 25,272 0 11,310 820 osh-static
4 no-host configure.ocaml 299,522 0 0 0 4,432 0 2,022 199 bash
12 no-host configure.ocaml 280,831 0 0 0 4,432 0 2,108 215 dash
20 no-host configure.ocaml 306,498 0 0 0 4,440 0 2,001 216 osh-native
28 no-host configure.ocaml 307,074 0 0 0 4,440 0 1,997 194 osh-nosouffle
36 no-host configure.ocaml 299,966 0 0 0 4,432 0 1,999 210 osh-static
5 no-host configure.tcc 5,253 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,222 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,577 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,685 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,129 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,535,292 2 0 0 35,944 0 18,990 1,013 bash
11 no-host configure.util-linux 1,704,995 2 0 336 35,936 0 17,169 1,170 dash
19 no-host configure.util-linux 1,523,947 1 0 0 35,952 0 16,148 965 osh-native
27 no-host configure.util-linux 1,514,989 0 0 0 35,952 0 16,220 939 osh-nosouffle
35 no-host configure.util-linux 1,477,662 1 0 0 35,936 0 16,148 863 osh-static
6 no-host configure.yash 173,536 0 0 0 3,616 0 883 111 bash
14 no-host configure.yash 159,605 0 0 0 3,616 0 1,001 111 dash
22 no-host configure.yash 176,398 0 0 0 3,624 0 859 109 osh-native
30 no-host configure.yash 177,242 0 0 0 3,624 0 859 98 osh-nosouffle
38 no-host configure.yash 172,839 0 0 0 3,616 0 857 85 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 395 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 402 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-4edcc1bd
osh-nosouffle osh-c7bfd722
osh-static osh-static-a6590b20
host label host id
no-host no-host-9c670df1