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 10 447 22 22.96 1.14
bin-true no-host 697 549 2,219 820 3.18 1.18
configure.cpython no-host 15,549 15,058 28,597 15,156 1.84 0.97
configure.ocaml no-host 3,826 3,701 4,575 3,827 1.20 1.00
configure.tcc no-host 48 41 190 49 4.00 1.03
configure.util-linux no-host 14,112 14,916 30,851 14,351 2.19 1.02
configure.yash no-host 1,849 1,748 2,439 1,808 1.32 0.98
hello-world no-host 2 1 48 3 29.30 1.74

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,561 1,136 23,048 3,227 9.00 1.26
bin-true no-host 107,290 66,399 744,964 130,645 6.94 1.22
configure.cpython no-host 2,221,319 2,242,185 6,060,478 2,246,098 2.73 1.01
configure.ocaml no-host 410,437 390,832 634,238 413,478 1.55 1.01
configure.tcc no-host 6,527 5,479 22,975 6,978 3.52 1.07
configure.util-linux no-host 2,112,266 2,262,553 5,291,410 2,022,914 2.51 0.96
configure.yash no-host 256,766 244,061 383,936 258,291 1.50 1.01
hello-world no-host 155 78 3,624 338 23.38 2.18

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.5 8.9 4.82 2.00
bin-true no-host 2.9 1.4 17.2 7.7 5.95 2.68
configure.cpython no-host 27.5 27.4 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.6 21.0 20.6 20.4 1.00 0.99
configure.tcc no-host 19.1 19.4 19.1 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.5 24.4 1.01 1.01
hello-world no-host 2.9 1.4 17.0 6.2 5.91 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,673 3,673 0 681 1,828 1,164 2 0 50,000 0
bin-true no-host 820 1 2 2.7 7.7 154,619 12,860 2,762 12,730 77,280 64,609 5,012 3 50,000 0
configure.cpython no-host 15,156 1 62 15.9 27.5 1,765,934 39,052 24,503 101,923 901,347 762,664 42,399 60 50,000 0
configure.util-linux no-host 14,351 3 59 22.2 30.3 2,695,085 29,056 65,754 126,121 1,312,366 1,256,598 49,081 41 131,508 1
configure.ocaml no-host 3,827 1 2 2.7 20.4 149,110 10,969 5,100 8,602 70,893 69,615 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,387 30,387 0 1,599 14,663 14,125 350 0 50,000 0
configure.yash no-host 1,808 1 2 2.6 24.4 138,968 6,642 6,495 7,554 69,574 61,840 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,013 64,388 42,627 4,601 54,295 57,117 478 3 85,254 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 14 6 4.5 bash
15 no-host abuild-print-help 10 9 2 3.4 dash
23 no-host abuild-print-help 447 401 50 21.5 osh-cpython
31 no-host abuild-print-help 22 17 5 8.9 osh-native
1 no-host bin-true 697 499 227 2.9 bash
9 no-host bin-true 549 433 126 1.4 dash
17 no-host bin-true 2,219 1,486 978 17.2 osh-cpython
25 no-host bin-true 820 590 248 7.7 osh-native
2 no-host configure.cpython 15,549 9,284 6,686 27.5 bash
10 no-host configure.cpython 15,058 9,090 6,397 27.4 dash
18 no-host configure.cpython 28,597 17,301 13,106 27.5 osh-cpython
26 no-host configure.cpython 15,156 8,880 6,548 27.5 osh-native
4 no-host configure.ocaml 3,826 1,734 1,108 20.6 bash
12 no-host configure.ocaml 3,701 1,545 1,176 21.0 dash
20 no-host configure.ocaml 4,575 2,158 1,619 20.6 osh-cpython
28 no-host configure.ocaml 3,827 1,629 1,237 20.4 osh-native
5 no-host configure.tcc 48 25 23 19.1 bash
13 no-host configure.tcc 41 24 18 19.4 dash
21 no-host configure.tcc 190 143 51 19.1 osh-cpython
29 no-host configure.tcc 49 32 17 19.4 osh-native
3 no-host configure.util-linux 14,112 8,909 5,696 30.3 bash
11 no-host configure.util-linux 14,916 9,070 6,346 30.1 dash
19 no-host configure.util-linux 30,851 20,877 11,005 30.1 osh-cpython
27 no-host configure.util-linux 14,351 8,724 5,823 30.3 osh-native
6 no-host configure.yash 1,849 1,062 796 24.2 bash
14 no-host configure.yash 1,748 1,011 740 24.2 dash
22 no-host configure.yash 2,439 1,442 1,038 24.5 osh-cpython
30 no-host configure.yash 1,808 1,031 781 24.4 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 48 32 16 17.0 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,561 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,136 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 23,048 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,227 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,290 0 0 0 8 0 1,987 49 bash
9 no-host bin-true 66,399 0 0 0 8 0 1,994 68 dash
17 no-host bin-true 744,964 0 0 0 8 0 1,997 204 osh-cpython
25 no-host bin-true 130,645 0 0 0 16 0 1,983 61 osh-native
2 no-host configure.cpython 2,221,319 1 0 0 32,928 0 14,346 1,096 bash
10 no-host configure.cpython 2,242,185 1 0 0 32,992 0 14,734 1,102 dash
18 no-host configure.cpython 6,060,478 0 0 0 27,512 0 13,440 1,280 osh-cpython
26 no-host configure.cpython 2,246,098 0 0 0 27,520 0 13,344 1,095 osh-native
4 no-host configure.ocaml 410,437 0 0 0 5,120 0 1,982 192 bash
12 no-host configure.ocaml 390,832 0 0 0 5,112 0 1,930 155 dash
20 no-host configure.ocaml 634,238 0 0 0 5,112 0 1,863 195 osh-cpython
28 no-host configure.ocaml 413,478 0 0 0 5,120 0 1,925 178 osh-native
5 no-host configure.tcc 6,527 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,479 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 22,975 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,978 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,112,266 0 0 0 42,400 0 18,544 1,009 bash
11 no-host configure.util-linux 2,262,553 0 0 0 42,584 0 17,326 1,101 dash
19 no-host configure.util-linux 5,291,410 14 0 0 39,112 0 17,084 1,225 osh-cpython
27 no-host configure.util-linux 2,022,914 1 0 0 39,128 0 17,075 1,158 osh-native
6 no-host configure.yash 256,766 0 0 0 4,120 0 870 106 bash
14 no-host configure.yash 244,061 0 0 0 3,720 0 864 78 dash
22 no-host configure.yash 383,936 0 0 0 3,728 0 857 92 osh-cpython
30 no-host configure.yash 258,291 0 0 0 3,736 0 848 84 osh-native
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,624 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 338 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-1114f336
dash dash-308ec8e6
osh-cpython osh-803bcb50
osh-native osh-f48e03b5
host label host id
no-host no-host-f581f4dd