Switch to smaller profiling data - seems to give better results, anyways

This commit is contained in:
Alcaro 2018-12-30 19:15:29 +01:00
parent 8d2f3630e9
commit 78e72f51f3
4 changed files with 16 additions and 15 deletions

View File

@ -490,7 +490,7 @@ struct bpsinfo bps_get_info(file* patch, bool changefrac)
#if 0
#ifdef BPS_DEBUG
#warning Disable this in release versions.
#include <stdio.h>
@ -702,10 +702,11 @@ static struct mem ReadWholeFile(const char * filename)
struct mem ret = { (unsigned char*)data, len };
return ret;
}
int main(int argc,char**argv)
{
if (argc==1) puts("bad arguments");
if (argc==2) bps_dump(ReadWholeFile(argv[1]));
if (argc==3) bps_compare(ReadWholeFile(argv[1]),ReadWholeFile(argv[2]));
if (argc==1) puts("bad arguments");
if (argc==2) bps_dump(ReadWholeFile(argv[1]));
if (argc==3) bps_compare(ReadWholeFile(argv[1]),ReadWholeFile(argv[2]));
}
#endif

View File

@ -34,7 +34,7 @@ done
if [ ! -e profile/choice ]; then
while true; do
read -p "Do you wish to use profile-guided optimization? This will download 100MB data from the internet and use 200MB disk space. (y/n)" yn
read -p "Do you wish to use profile-guided optimization? This will download 40MB data from the internet and use 90MB disk space, and 800MB RAM during compilation. (y/n)" yn
case $yn in
[Yy]* ) profile/download.sh; break;;
[Nn]* ) echo n > profile/choice; break;;

View File

@ -1,11 +1,11 @@
#!/bin/sh
SRC=profile/firefox-45.0esr.tar
DST=profile/firefox-52.0esr.tar
SRCSIZE=101529600
DSTSIZE=113336320
SRCURL=https://ftp.mozilla.org/pub/firefox/releases/45.0esr/linux-x86_64/en-US/firefox-45.0esr.tar.bz2
DSTURL=https://ftp.mozilla.org/pub/firefox/releases/52.0esr/linux-x86_64/en-US/firefox-52.0esr.tar.bz2
SRC=profile/firefox-10.0esr.tar
DST=profile/firefox-17.0esr.tar
SRCSIZE=39526400
DSTSIZE=49192960
SRCURL=https://ftp.mozilla.org/pub/firefox/releases/10.0esr/linux-x86_64/en-US/firefox-10.0esr.tar.bz2
DSTURL=https://ftp.mozilla.org/pub/firefox/releases/17.0esr/linux-x86_64/en-US/firefox-17.0esr.tar.bz2
if [ ! -f $SRC ] || [ $(wc -c <$SRC) -lt $SRCSIZE ]; then
wget $SRCURL -O- | bzcat > $SRC || exit $?

View File

@ -3,8 +3,8 @@
#profiling plus threading tends to act weirdly, disable it
export OMP_NUM_THREADS=1
FX45=profile/firefox-45.0esr.tar
FX52=profile/firefox-52.0esr.tar
SRC=profile/firefox-10.0esr.tar
DST=profile/firefox-17.0esr.tar
$1 --create --bps-delta $FX45 $FX52 /dev/null
$1 --create --bps-delta-moremem $FX45 $FX52 /dev/null
/usr/bin/time --verbose $1 --create --bps-delta $SRC $DST /dev/null
/usr/bin/time --verbose $1 --create --bps-delta-moremem $SRC $DST /dev/null