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 py bash ratio native bash ratio
abuild-print-help no-host 19 9 470 22 24.62 1.16
bin-true no-host 687 546 2,795 1,050 4.07 1.53
configure.cpython no-host 15,490 15,471 29,006 15,873 1.87 1.02
configure.ocaml no-host 3,909 3,833 4,721 3,901 1.21 1.00
configure.tcc no-host 49 42 204 51 4.19 1.04
configure.util-linux no-host 14,433 15,224 31,851 14,724 2.21 1.02
configure.yash no-host 1,859 1,813 2,558 1,872 1.38 1.01
hello-world no-host 2 1 49 3 31.65 1.83

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,554 1,094 22,858 3,163 8.95 1.24
bin-true no-host 107,348 66,440 893,152 230,257 8.32 2.14
configure.cpython no-host 2,216,877 2,250,661 6,173,272 2,221,575 2.78 1.00
configure.ocaml no-host 410,186 390,943 639,468 414,072 1.56 1.01
configure.tcc no-host 6,542 5,475 23,266 7,006 3.56 1.07
configure.util-linux no-host 2,100,991 2,261,671 5,311,523 2,005,465 2.53 0.95
configure.yash no-host 256,141 245,140 388,639 262,478 1.52 1.02
hello-world no-host 152 81 3,693 351 24.30 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 py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.4 21.7 8.9 4.88 2.00
bin-true no-host 2.9 1.4 19.0 8.0 6.59 2.77
configure.cpython no-host 27.5 27.5 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.0 30.0 30.3 1.00 1.00
configure.yash no-host 24.2 24.5 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.4 17.4 6.2 6.33 2.24

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.2 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 1,050 0 2 2.6 8.0 202,738 13,857 2,818 9,734 106,375 86,629 3,008 4 50,000 0
configure.cpython no-host 15,873 1 66 15.0 27.4 1,772,719 49,108 28,528 86,381 908,132 778,206 22,694 60 50,000 0
configure.util-linux no-host 14,724 3 63 21.3 30.3 2,703,551 44,172 65,812 109,643 1,320,686 1,273,222 27,391 41 131,624 1
configure.ocaml no-host 3,901 1 2 2.6 20.6 150,084 10,993 5,163 7,513 71,663 70,908 1,448 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,573 30,573 0 1,504 14,830 14,239 226 0 50,000 0
configure.yash no-host 1,872 1 2 2.6 24.4 142,960 10,576 6,510 6,320 72,214 64,426 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 13 7 4.5 bash
15 no-host abuild-print-help 9 6 4 3.4 dash
23 no-host abuild-print-help 470 427 46 21.7 osh-cpython
31 no-host abuild-print-help 22 20 3 8.9 osh-native
1 no-host bin-true 687 516 201 2.9 bash
9 no-host bin-true 546 430 125 1.4 dash
17 no-host bin-true 2,795 1,876 1,193 19.0 osh-cpython
25 no-host bin-true 1,050 717 349 8.0 osh-native
2 no-host configure.cpython 15,490 9,242 6,643 27.5 bash
10 no-host configure.cpython 15,471 9,425 6,480 27.5 dash
18 no-host configure.cpython 29,006 17,890 12,967 27.5 osh-cpython
26 no-host configure.cpython 15,873 9,149 6,975 27.4 osh-native
4 no-host configure.ocaml 3,909 1,715 1,225 20.6 bash
12 no-host configure.ocaml 3,833 1,681 1,166 20.6 dash
20 no-host configure.ocaml 4,721 2,320 1,612 20.6 osh-cpython
28 no-host configure.ocaml 3,901 1,655 1,280 20.6 osh-native
5 no-host configure.tcc 49 29 20 19.4 bash
13 no-host configure.tcc 42 20 22 19.3 dash
21 no-host configure.tcc 204 142 66 19.3 osh-cpython
29 no-host configure.tcc 51 24 28 19.4 osh-native
3 no-host configure.util-linux 14,433 9,105 5,808 30.1 bash
11 no-host configure.util-linux 15,224 9,476 6,241 30.0 dash
19 no-host configure.util-linux 31,851 21,277 11,676 30.0 osh-cpython
27 no-host configure.util-linux 14,724 8,764 6,149 30.3 osh-native
6 no-host configure.yash 1,859 1,134 732 24.2 bash
14 no-host configure.yash 1,813 1,075 741 24.5 dash
22 no-host configure.yash 2,558 1,570 1,032 24.4 osh-cpython
30 no-host configure.yash 1,872 1,069 808 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 49 25 24 17.4 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native

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,554 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,858 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,163 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 107,348 0 0 0 8 0 1,990 70 bash
9 no-host bin-true 66,440 0 0 0 8 0 1,988 50 dash
17 no-host bin-true 893,152 0 0 0 8 0 1,993 231 osh-cpython
25 no-host bin-true 230,257 0 0 0 16 0 1,992 70 osh-native
2 no-host configure.cpython 2,216,877 0 0 0 32,928 0 14,497 1,232 bash
10 no-host configure.cpython 2,250,661 0 0 0 32,992 0 14,540 992 dash
18 no-host configure.cpython 6,173,272 0 0 0 27,512 0 13,193 1,213 osh-cpython
26 no-host configure.cpython 2,221,575 1 0 0 27,520 0 13,228 926 osh-native
4 no-host configure.ocaml 410,186 0 0 0 5,120 0 1,960 167 bash
12 no-host configure.ocaml 390,943 0 0 0 5,112 0 1,902 164 dash
20 no-host configure.ocaml 639,468 0 0 0 5,112 0 1,850 198 osh-cpython
28 no-host configure.ocaml 414,072 0 0 0 5,120 0 1,933 167 osh-native
5 no-host configure.tcc 6,542 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,475 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,266 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 7,006 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,100,991 3 0 0 42,400 0 18,656 1,083 bash
11 no-host configure.util-linux 2,261,671 1 0 0 42,592 0 17,432 1,223 dash
19 no-host configure.util-linux 5,311,523 9 0 0 39,112 0 17,111 1,420 osh-cpython
27 no-host configure.util-linux 2,005,465 0 0 0 39,120 0 17,056 971 osh-native
6 no-host configure.yash 256,141 0 0 0 4,120 0 872 83 bash
14 no-host configure.yash 245,140 0 0 0 3,720 0 867 80 dash
22 no-host configure.yash 388,639 0 0 0 3,728 0 851 103 osh-cpython
30 no-host configure.yash 262,478 0 0 0 3,736 0 847 80 osh-native
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,693 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-c6f7fd30
dash dash-308ec8e6
osh-cpython osh-15b09a18
osh-native osh-0af25ed1
host label host id
no-host no-host-556df3ee