Sponsored Content
Full Discussion: Why is cut slower than awk?
Top Forums UNIX for Advanced & Expert Users Why is cut slower than awk? Post 302284796 by BandGap on Friday 6th of February 2009 10:40:47 AM
Old 02-06-2009
Well I did some testing as well. The system which I used in the first post was a QuadCore AMD with Lustre file system (used mainly on clusters).

I just did the same thing on a Pentium 4 on ext3, with basically the same filesize and the results were exactly opposite. The 'awk' time was almost the same on both systems, but the 'cut' worked approx. 6 times faster.

Of course, the times still range in the sub-second regime but the test file was one of the smaller ones I need to process...

Thanks for the feedback!

BG
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Slower slower dead

I am running RH 7.1 and i am always remotely logged in working on a database. I got php and mysql running and then as the each week goes my rsh, or secure telnet, and any other remote session slows to become extremly choppy. If i am at teh box my i am fine the computer is not bogged down at all,... (5 Replies)
Discussion started by: macdonto
5 Replies

2. Programming

TCP/IP send getting slower

Hi, We have developed a server program using TCP/IP Communication to communicate with another client program. After running for some days we find the TCP/IP connection from the server program is getting slower ie, the messages are not send quickly to the client. What i mean to say is since the... (0 Replies)
Discussion started by: rajesh_puru
0 Replies

3. UNIX for Advanced & Expert Users

TCP/IP Connection getting slower...

Hi, We have developed a server program using TCP/IP Communication to communicate with another client program. After running for some days we find the TCP/IP connection from the server program is getting slower. What i mean to say is since the send() function in the server program (it is... (2 Replies)
Discussion started by: rajesh_puru
2 Replies

4. Solaris

Why is restore slower than backup?

After my big disaster, I'm restoring from tape on my Sun box. This is the second time I've used 'ufsrestore' with this DEC TZ88 SCSI DLT drive. The last time was for a migration from one box to another. Both the last time and this time, the restore has taken a hell of a lot longer than the... (4 Replies)
Discussion started by: deckard
4 Replies

5. Shell Programming and Scripting

[grep awk cut] > awk

Hi, I'm very new to scripting. grep $s $filename | awk '{print $2}' | cut -c 1-8 How can I optimize this using a single awk? I tried: awk '/$s/ {print $2}' $filename | cut -c 1-8 However didn't work, I think the awk is not recognizing $s and the verbal is something else. (6 Replies)
Discussion started by: firdousamir
6 Replies

6. Shell Programming and Scripting

Is awk vs cut which one is better

i was trying to work on program to look for users never log on sever.. using awk with awk is working last| awk '{print $1}' |sort -u > /tmp/users1$$ cat /etc/passwd | awk -F: '{print $1}' |sort -u > /tmp/users2$$ comm -13 /tmp/users$$ rm -f /tmp/users$$ with cut it is not working ... (3 Replies)
Discussion started by: macrules
3 Replies

7. Shell Programming and Scripting

HELP! using cut/awk

how would i write a shell script to show the number of lines in which int variable appears in a c++ program. how would i do this using cut or awk methods is it possbile and having a output similar to this x, number of apperances = y, number of apperances = (2 Replies)
Discussion started by: deadleg
2 Replies

8. Linux

GCC compiles a lot slower than it should

Hello everyone, i'm having a problem compiling an application i'm developing. For a month, while developing, i did lots of compilations to test it. While compiling, i noticed gcc did it pretty slow, but gave it no importance. I'm using ubuntu 10.04 32bits, and my pc has: - Dual core intel... (1 Reply)
Discussion started by: adadon
1 Replies

9. Solaris

Job Run Slower using Autosys than running through terminal

Hi All, We run Many jobs evryday using Autosys. Sometimes due to various reason we got to run the job from terminal as well (using nohup). We observed that the job running through terminal(nohup) takes much less time then the autosys (for same job). What can be the possible reason for such... (1 Reply)
Discussion started by: kg_gaurav
1 Replies
cpuburn(1)																cpuburn(1)

NAME
cpuburn, burnBX, burnK6, burnK7, burnMMX, burnP5, burnP6 - a collection of programs to put heavy load on CPU SYNOPSIS
burnBX burnK6 burnK7 burnMMX burnP5 burnP6 DESCRIPTION
These programs are designed to load x86 CPUs as heavily as possible for the purposes of system testing ("burn in"). They have been opti- mized for different processors. FPU and ALU instructions are coded in an assembler endless loop. They do not test every instruction. The goal has been to maximize heat production from the CPU, putting stress on the CPU itself, cooling system, motherboard (especially voltage regulators) and power supply (likely cause of burnBX/burnMMX errors). The programs produce no output, but signal hardware errors by a return code or (more likely) your machine locking up. burnP5 is optimized for Intel Pentium with or without MMX CPUs burnP6 is optimized for Intel PentiumPro, Pentium II & III CPUs burnK6 is optimized for AMD K6 CPUs burnK7 is optimized for AMD Athlon/Duron CPUs burnMMX tests cache/memory interfaces on all CPUs with MMX burnBX is an alternate cache/memory test for Intel CPUs USAGE
Burn testing is designed to make your computer glitch if it has hardware problems, so make sure that nothing critical is running and all critical data is saved back to the hard-drives. The best is to run it with filesystems mounted read-only. Note that root privileges are not required. Run the desired program in the background, checking the error result. You'll may want to repeat this command for every processor you have in an SMP or HyperThreading system. For example, burnP6 || echo $? & Monitor progress of cpuburn by ps. You can monitor CPU temperature and/or system voltages through ACPI or using the lm-sensors package if you system supports it. When finished, kill the burn* process(es). For example, killall burnP6 BUGS
Report all bug to submit@bugs.debian.org, for more information visit http://bugs.debian.org AUTHORS
cpuburn was written by Robert Redelmeier <redelm@ev1.net> June 04, 2011 cpuburn(1)
All times are GMT -4. The time now is 01:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy