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 13 7 17 19 16 1.35 1.27
bin-true no-host 474 302 613 613 511 1.29 1.08
configure.cpython no-host 12,050 11,983 11,899 11,877 11,604 0.99 0.96
configure.ocaml no-host 3,374 3,314 3,432 3,432 3,418 1.02 1.01
configure.tcc no-host 39 35 41 42 37 1.04 0.96
configure.util-linux no-host 10,648 11,283 10,817 11,138 10,796 1.02 1.01
configure.yash no-host 1,467 1,446 1,496 1,520 1,482 1.02 1.01
hello-world no-host 1 1 2 2 1 2.36 1.09

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,442 1,171 3,341 3,465 2,810 1.37 1.15
bin-true no-host 103,882 49,851 133,812 135,375 111,483 1.29 1.07
configure.cpython no-host 1,630,099 1,640,544 1,600,704 1,610,322 1,526,993 0.98 0.94
configure.ocaml no-host 300,247 281,585 306,164 306,973 301,686 1.02 1.00
configure.tcc no-host 5,276 4,230 5,677 5,685 5,160 1.08 0.98
configure.util-linux no-host 1,544,425 1,706,689 1,497,111 1,515,465 1,462,264 0.97 0.95
configure.yash no-host 173,899 160,010 177,118 177,466 173,449 1.02 1.00
hello-world no-host 149 87 394 400 182 2.64 1.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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.8 4.1 9.6 10.1 6.4 1.97 1.32
bin-true no-host 3.1 1.6 8.9 9.2 5.4 2.83 1.71
configure.cpython no-host 34.5 34.4 34.5 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.9 28.8 28.7 28.7 29.0 0.99 1.00
configure.tcc no-host 26.1 26.2 26.4 26.4 26.2 1.01 1.00
configure.util-linux no-host 39.5 39.8 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.5 33.0 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.7 6.9 3.4 2.12 1.08

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.3 6.7 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 613 1 2 3.5 8.9 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 11,899 1 61 14.8 34.5 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 10,817 3 64 21.6 39.6 2,705,279 37,450 66,323 119,739 1,291,802 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,432 1 2 2.8 28.7 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 41 0 0 1.4 26.4 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,496 1 2 2.7 33.4 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 17 1 2 3.0 9.6 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 2 0 0 0.3 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 613 1 2 3.5 9.2 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 11,877 1 62 14.8 34.5 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 11,138 3 66 21.6 39.7 2,705,279 37,456 66,329 119,739 1,291,802 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,432 1 2 2.8 28.7 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 42 0 0 1.4 26.4 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,520 1 2 2.7 33.4 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 10.1 117,212 65,788 41,998 4,969 54,592 57,651 277 3 83,996 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 13 7 6 4.8 bash
15 no-host abuild-print-help 7 5 2 4.1 dash
23 no-host abuild-print-help 17 14 4 9.6 osh-native
31 no-host abuild-print-help 19 16 4 10.1 osh-nosouffle
39 no-host abuild-print-help 16 11 6 6.4 osh-static
1 no-host bin-true 474 297 217 3.1 bash
9 no-host bin-true 302 222 81 1.6 dash
17 no-host bin-true 613 317 312 8.9 osh-native
25 no-host bin-true 613 328 298 9.2 osh-nosouffle
33 no-host bin-true 511 280 243 5.4 osh-static
2 no-host configure.cpython 12,050 7,856 4,524 34.5 bash
10 no-host configure.cpython 11,983 7,638 4,667 34.4 dash
18 no-host configure.cpython 11,899 7,303 4,794 34.5 osh-native
26 no-host configure.cpython 11,877 7,253 4,839 34.5 osh-nosouffle
34 no-host configure.cpython 11,604 7,263 4,523 34.4 osh-static
4 no-host configure.ocaml 3,374 1,481 914 28.9 bash
12 no-host configure.ocaml 3,314 1,506 813 28.8 dash
20 no-host configure.ocaml 3,432 1,526 925 28.7 osh-native
28 no-host configure.ocaml 3,432 1,513 942 28.7 osh-nosouffle
36 no-host configure.ocaml 3,418 1,538 892 29.0 osh-static
5 no-host configure.tcc 39 25 15 26.1 bash
13 no-host configure.tcc 35 26 9 26.2 dash
21 no-host configure.tcc 41 26 15 26.4 osh-native
29 no-host configure.tcc 42 21 21 26.4 osh-nosouffle
37 no-host configure.tcc 37 24 14 26.2 osh-static
3 no-host configure.util-linux 10,648 6,736 4,293 39.5 bash
11 no-host configure.util-linux 11,283 6,716 4,972 39.8 dash
19 no-host configure.util-linux 10,817 6,334 4,628 39.6 osh-native
27 no-host configure.util-linux 11,138 6,316 4,979 39.7 osh-nosouffle
35 no-host configure.util-linux 10,796 6,352 4,594 39.6 osh-static
6 no-host configure.yash 1,467 925 545 33.5 bash
14 no-host configure.yash 1,446 944 494 33.0 dash
22 no-host configure.yash 1,496 965 524 33.4 osh-native
30 no-host configure.yash 1,520 930 582 33.4 osh-nosouffle
38 no-host configure.yash 1,482 960 518 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 2 1 1 6.7 osh-native
24 no-host hello-world 2 1 1 6.9 osh-nosouffle
32 no-host hello-world 1 0 1 3.4 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,442 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,171 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,341 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,465 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,810 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,882 0 0 0 16 0 2,000 52 bash
9 no-host bin-true 49,851 0 0 0 8 0 2,995 36 dash
17 no-host bin-true 133,812 0 0 0 16 0 1,999 56 osh-native
25 no-host bin-true 135,375 0 0 0 16 0 1,994 60 osh-nosouffle
33 no-host bin-true 111,483 0 0 0 8 0 1,999 75 osh-static
2 no-host configure.cpython 1,630,099 0 0 0 25,272 0 14,026 959 bash
10 no-host configure.cpython 1,640,544 1 0 0 25,272 0 14,084 981 dash
18 no-host configure.cpython 1,600,704 0 0 0 25,280 0 11,155 868 osh-native
26 no-host configure.cpython 1,610,322 0 0 0 25,280 0 11,332 806 osh-nosouffle
34 no-host configure.cpython 1,526,993 0 0 0 25,272 0 11,304 926 osh-static
4 no-host configure.ocaml 300,247 0 0 0 4,432 0 2,026 195 bash
12 no-host configure.ocaml 281,585 0 0 0 4,432 0 2,111 157 dash
20 no-host configure.ocaml 306,164 0 0 0 4,440 0 2,004 195 osh-native
28 no-host configure.ocaml 306,973 0 0 0 4,440 0 2,000 200 osh-nosouffle
36 no-host configure.ocaml 301,686 0 0 0 4,432 0 2,002 213 osh-static
5 no-host configure.tcc 5,276 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,230 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,677 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,685 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,160 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,544,425 0 0 232 35,944 0 18,826 961 bash
11 no-host configure.util-linux 1,706,689 0 0 0 35,936 0 16,880 1,093 dash
19 no-host configure.util-linux 1,497,111 2 0 0 35,960 0 16,186 857 osh-native
27 no-host configure.util-linux 1,515,465 4 0 0 35,944 0 16,223 873 osh-nosouffle
35 no-host configure.util-linux 1,462,264 1 0 0 35,936 0 16,168 829 osh-static
6 no-host configure.yash 173,899 0 0 0 3,616 0 878 97 bash
14 no-host configure.yash 160,010 0 0 0 3,616 0 1,003 99 dash
22 no-host configure.yash 177,118 0 0 0 3,624 0 861 92 osh-native
30 no-host configure.yash 177,466 0 0 0 3,624 0 856 94 osh-nosouffle
38 no-host configure.yash 173,449 0 0 0 3,616 0 859 113 osh-static
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 394 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 182 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-8e55f0d7
osh-nosouffle osh-2febad98
osh-static osh-static-dd263ac6
host label host id
no-host no-host-9c670df1