Hiro Yoshioka
hyosh****@mirac*****
2006年 5月 29日 (月) 23:48:34 JST
よしおかです。 昨日までの投稿者ランキングをとってみました。 $ time egrep '^From:' /tmp/le.txt|sort|uniq -c|sort -r|cat -n 1 48 From: kazam****@mac***** (Kazuhiro Kazama) 2 43 From: moriy****@mirac***** (MORIYAMA Masayuki) 3 31 From: tom****@asaka***** (Tomoyuki Asakawa) 4 23 From: yw3t-****@asahi***** (Tadamasa Teranishi) 5 22 From: nozom****@biol***** (Nozomi Ytow) 6 22 From: narus****@airem***** (NARUSE, Yui) 7 11 From: hyosh****@mirac***** (Hiro Yoshioka) 8 9 From: m-kos****@ceres***** (kosaki) 9 8 From: umq.8****@gmail***** (Hirohisa Yamaguchi) 10 6 From: taca****@back-***** (Takahiro Kambe) 11 4 From: msyk****@mtg***** (MORIYAMA Masayuki) 12 3 From: sio-0****@rh***** (Koichi Hyodo) 13 3 From: ogwat****@wb4***** (Ogata Katsuhiro) 14 3 From: numat****@jp***** (NUMATA Toshinori) 15 3 From: motoy****@bc4***** (OGAWA Motoyuki) 16 3 From: m-kos****@ceres***** (=?ISO-2022-JP?B?GyRCPi46ajtxOS0bKEI=?=) 17 3 From: Kazuhiro Kazama <kazam****@mac*****> 18 2 From: yanag****@gmail***** (Yanagisawa) 19 2 From: y.nao****@glamo***** (NAOI Yasushi) 20 1 From: shini****@stain***** (Shinichiro HIDA) 21 1 From: nishi****@mirac***** (Shigeo Nishida) 22 1 From: murat****@oki***** (Toshiki Murata) 23 1 From: legac****@lists***** [mailto:legac****@lists*****] On Behalf Of Tomoyuki Asakawa 24 1 From: OGAWA Motoyuki <motoy****@bc4*****> 25 1 From: Nozomi Ytow <nozom****@biol*****> 26 1 From: MORIYAMA Masayuki <moriy****@mirac*****> 27 1 From: LE-ta****@ml***** (Hata) 28 1 From: "Hirohisa Yamaguchi" <umq.8****@gmail*****> real 0m32.726s user 0m32.685s sys 0m0.044s From:が微妙に違う人もいるんですが適当に手で集計しちゃって ください。 それよか、びっくりしたのはgrepが異様に遅いのですが LANG=ja_JP.UTF-8 だといけないみたいで、 $ time egrep '^From:' /tmp/le.txt|wc 258 1521 12538 real 0m32.285s user 0m32.376s sys 0m0.024s $ time LANG=C egrep '^From:' /tmp/le.txt|wc 258 1521 12538 real 0m0.156s user 0m0.151s sys 0m0.005s 200倍違うんですけど、そーゆーもんなんすか?>grep どうもmbrtowcでいちいちwcharにしているのが無駄に 遅いみたいですね。 よ -- Hiro Yoshioka CTO/Miracle Linux Corporation http://blog.miraclelinux.com/yume/