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 458 22 21 23.88 1.16
bin-true no-host 677 543 2,312 807 818 3.41 1.19
configure.cpython no-host 15,001 15,055 28,713 15,237 15,444 1.91 1.02
configure.ocaml no-host 3,790 3,740 4,637 3,822 3,812 1.22 1.01
configure.tcc no-host 48 41 201 49 49 4.21 1.02
configure.util-linux no-host 13,900 14,823 31,413 14,330 14,321 2.26 1.03
configure.yash no-host 1,816 1,758 2,479 1,829 1,822 1.36 1.01
hello-world no-host 2 1 56 3 3 35.82 1.86

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,552 1,108 23,798 3,218 3,102 9.33 1.26
bin-true no-host 106,348 66,466 784,550 123,179 128,099 7.38 1.16
configure.cpython no-host 2,228,021 2,242,024 6,231,030 2,214,166 2,214,224 2.80 0.99
configure.ocaml no-host 409,934 391,264 648,216 412,860 412,536 1.58 1.01
configure.tcc no-host 6,549 5,477 24,143 6,936 6,914 3.69 1.06
configure.util-linux no-host 2,097,024 2,259,927 5,389,715 1,997,916 1,985,070 2.57 0.95
configure.yash no-host 256,001 243,496 388,590 258,576 257,897 1.52 1.01
hello-world no-host 151 83 3,948 347 339 26.15 2.30

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.3 3.4 22.6 9.2 8.7 5.22 2.12
bin-true no-host 3.0 1.4 18.1 8.1 7.6 6.02 2.70
configure.cpython no-host 27.3 27.4 27.3 27.1 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.4 20.4 20.6 20.6 1.00 1.01
configure.tcc no-host 19.1 19.4 19.3 19.3 19.1 1.01 1.01
configure.util-linux no-host 30.1 30.1 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.2 24.2 1.01 1.00
hello-world no-host 2.8 1.6 18.2 6.3 5.9 6.63 2.29

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.3 3,790 3,790 0 697 1,863 1,230 2 0 50,000 0
bin-true no-host 807 1 2 2.6 8.1 153,754 12,327 2,892 8,746 76,327 68,681 3,008 3 50,000 0
configure.cpython no-host 15,237 2 64 14.9 27.1 1,771,755 49,130 28,517 85,418 878,120 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,330 3 61 21.2 30.1 2,702,521 45,805 65,716 108,694 1,290,645 1,303,182 32,239 41 131,432 1
configure.ocaml no-host 3,822 1 2 2.6 20.6 150,088 11,117 5,212 7,511 70,974 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,594 30,594 0 1,521 14,646 14,427 271 0 50,000 0
configure.yash no-host 1,829 1 2 2.6 24.2 139,420 8,029 6,691 5,992 67,947 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,300 64,408 42,618 4,535 54,441 57,324 277 3 85,236 1
hello-world no-host 3 0 0 0.3 5.9 3,789 3,789 0 698 1,863 1,228 2 0 50,000 0
bin-true no-host 818 1 2 2.6 7.6 153,753 12,116 2,830 8,747 76,327 68,679 3,008 3 50,000 0
configure.cpython no-host 15,444 1 60 14.9 27.4 1,771,754 49,068 28,455 85,419 878,120 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,321 3 61 21.2 30.1 2,702,521 53,698 65,654 108,696 1,290,645 1,303,180 32,239 41 131,308 1
configure.ocaml no-host 3,812 1 2 2.6 20.6 150,088 11,055 5,150 7,513 70,974 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.1 30,594 30,594 0 1,523 14,646 14,425 271 0 50,000 0
configure.yash no-host 1,822 1 2 2.6 24.2 139,420 7,967 6,629 5,994 67,947 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,299 64,346 42,556 4,536 54,441 57,322 277 3 85,112 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 15 5 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 458 393 68 22.6 osh-cpython
31 no-host abuild-print-help 22 16 7 9.2 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 677 498 209 3.0 bash
9 no-host bin-true 543 407 145 1.4 dash
17 no-host bin-true 2,312 1,544 1,032 18.1 osh-cpython
25 no-host bin-true 807 565 257 8.1 osh-native
33 no-host bin-true 818 572 261 7.6 osh-native-souffle
2 no-host configure.cpython 15,001 9,006 6,382 27.3 bash
10 no-host configure.cpython 15,055 9,227 6,241 27.4 dash
18 no-host configure.cpython 28,713 17,452 13,106 27.3 osh-cpython
26 no-host configure.cpython 15,237 8,975 6,534 27.1 osh-native
34 no-host configure.cpython 15,444 8,990 6,510 27.4 osh-native-souffle
4 no-host configure.ocaml 3,790 1,634 1,195 20.4 bash
12 no-host configure.ocaml 3,740 1,545 1,214 20.4 dash
20 no-host configure.ocaml 4,637 2,264 1,584 20.4 osh-cpython
28 no-host configure.ocaml 3,822 1,682 1,177 20.6 osh-native
36 no-host configure.ocaml 3,812 1,634 1,212 20.6 osh-native-souffle
5 no-host configure.tcc 48 17 32 19.1 bash
13 no-host configure.tcc 41 28 14 19.4 dash
21 no-host configure.tcc 201 163 41 19.3 osh-cpython
29 no-host configure.tcc 49 32 18 19.3 osh-native
37 no-host configure.tcc 49 37 12 19.1 osh-native-souffle
3 no-host configure.util-linux 13,900 8,852 5,519 30.1 bash
11 no-host configure.util-linux 14,823 9,177 6,137 30.1 dash
19 no-host configure.util-linux 31,413 21,015 11,483 30.3 osh-cpython
27 no-host configure.util-linux 14,330 8,706 5,828 30.1 osh-native
35 no-host configure.util-linux 14,321 8,746 5,773 30.1 osh-native-souffle
6 no-host configure.yash 1,816 1,066 759 24.2 bash
14 no-host configure.yash 1,758 1,021 741 24.4 dash
22 no-host configure.yash 2,479 1,544 977 24.4 osh-cpython
30 no-host configure.yash 1,829 1,006 828 24.2 osh-native
38 no-host configure.yash 1,822 1,015 810 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 56 40 16 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 5.9 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,552 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,798 0 0 0 8 0 46 11 osh-cpython
31 no-host abuild-print-help 3,218 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,102 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,348 0 0 0 8 0 1,993 67 bash
9 no-host bin-true 66,466 0 0 0 8 0 1,987 41 dash
17 no-host bin-true 784,550 0 0 0 8 0 1,999 175 osh-cpython
25 no-host bin-true 123,179 0 0 0 16 0 1,994 114 osh-native
33 no-host bin-true 128,099 0 0 0 16 0 1,986 92 osh-native-souffle
2 no-host configure.cpython 2,228,021 0 0 0 32,928 0 14,522 927 bash
10 no-host configure.cpython 2,242,024 0 0 0 32,992 0 14,669 1,172 dash
18 no-host configure.cpython 6,231,030 0 0 0 27,512 0 13,239 1,072 osh-cpython
26 no-host configure.cpython 2,214,166 0 0 0 27,520 0 13,161 1,034 osh-native
34 no-host configure.cpython 2,214,224 0 0 0 27,520 0 13,286 1,106 osh-native-souffle
4 no-host configure.ocaml 409,934 0 0 0 5,120 0 1,947 170 bash
12 no-host configure.ocaml 391,264 0 0 0 5,112 0 1,919 141 dash
20 no-host configure.ocaml 648,216 1 0 0 5,112 0 1,857 177 osh-cpython
28 no-host configure.ocaml 412,860 0 0 0 5,120 0 1,932 180 osh-native
36 no-host configure.ocaml 412,536 0 0 0 5,120 0 1,931 162 osh-native-souffle
5 no-host configure.tcc 6,549 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,143 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,936 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,914 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,097,024 0 0 0 42,400 0 18,493 992 bash
11 no-host configure.util-linux 2,259,927 0 0 0 42,584 0 17,417 1,061 dash
19 no-host configure.util-linux 5,389,715 7 0 0 39,120 0 16,946 1,341 osh-cpython
27 no-host configure.util-linux 1,997,916 1 0 0 39,120 0 16,856 1,070 osh-native
35 no-host configure.util-linux 1,985,070 1 0 0 39,128 0 16,906 916 osh-native-souffle
6 no-host configure.yash 256,001 0 0 0 4,120 0 869 82 bash
14 no-host configure.yash 243,496 0 0 0 3,720 0 869 74 dash
22 no-host configure.yash 388,590 0 0 0 3,728 0 856 93 osh-cpython
30 no-host configure.yash 258,576 0 0 0 3,736 0 849 81 osh-native
38 no-host configure.yash 257,897 0 0 0 3,736 0 851 89 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,948 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5219b78d
dash dash-0ebcf347
osh-cpython osh-ea311d92
osh-native osh-a6c110b1
osh-native-souffle osh-6b08a159
host label host id
no-host no-host-556df3ee