summaryrefslogtreecommitdiff
path: root/vendor/icu_normalizer/benches/data/README.md
blob: de34f9fc548d6eb18d396c2f1baef1b416fb8a46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Generating microbench data

The full versions of these files are located 
[in another part of the repository](https://github.com/unicode-org/icu/tree/main/icu4j/perf-tests/data).

## Sanitizing the file

```shell
sed -i '/^#/d' ${filename}
sed -i '/^$/d' ${filename}
```

## Shuffling the file

```shell
shuf -n 20 ${filename} -o ${filename}
```

## Add back the header (if you plan on submitting the files)

```
# This file is part of ICU4X. For terms of use, please see the file
# called LICENSE at the top level of the ICU4X source tree
# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
```